From 20ba37f1df869feead8a5ec9f986854b85d44879 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Fri, 6 Nov 2026 11:31:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=98=E7=BD=91=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=84=8F=E5=9B=BE=E7=BC=8E=E5=B8=A6=E3=80=81=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=8E=E5=AF=BC=E8=88=AA=E5=9D=9E=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 收敛欢迎区意图入口与联系字段,优化波浪性能,并完善面板开关、焦点陷阱与无障碍属性。 Co-authored-by: Cursor --- public/9610.html | 4 +- src/locale/nana/en-US.ts | 2 +- src/locale/nana/zh-CN.ts | 2 +- src/views/site/GradientWaves.vue | 80 +- src/views/site/SiteAdvisorShell.vue | 199 ++--- src/views/site/SiteHeader.vue | 44 +- src/views/site/SiteIllusIcon.vue | 258 +++--- src/views/site/SiteMessageCard.vue | 5 +- src/views/site/SiteTopicPanel.vue | 18 - src/views/site/index.vue | 52 +- src/views/site/lib/site-panel-focus.ts | 49 ++ src/views/site/lib/site-welcome.ts | 74 +- src/views/site/styles/ai-advisor.css | 1117 ++++++++++++------------ 13 files changed, 997 insertions(+), 907 deletions(-) create mode 100644 src/views/site/lib/site-panel-focus.ts diff --git a/public/9610.html b/public/9610.html index 287ae6d..c5f05cb 100644 --- a/public/9610.html +++ b/public/9610.html @@ -857,8 +857,8 @@

不确定选哪种方案?免费为您定制

IDE 国际物流 · 专注跨境电商出口通关与东南亚专线物流

- 📞 咨询热线:XXX-XXXX-XXXX - 💬 微信:ydgjzzh + 📞 咨询热线:13048804956 + ✉️ 邮箱:13048804956@163.com
diff --git a/src/locale/nana/en-US.ts b/src/locale/nana/en-US.ts index 5cba53f..9118f35 100644 --- a/src/locale/nana/en-US.ts +++ b/src/locale/nana/en-US.ts @@ -74,7 +74,7 @@ export default { 'nanaAssistant.trackHint': 'Just send the waybill number to track, e.g. IDE2607281746002926', 'nanaAssistant.replyVisibility': 'You get milestone updates from pickup to delivery — pickup, export, line-haul, customs, and final delivery. We proactively flag delays before they escalate.', 'nanaAssistant.replyAfterSales': "Your dedicated advisor handles exceptions, claims, and after-sales follow-up — you won't be left chasing tickets alone. Describe the issue and tracking number if you have one.", -'nanaAssistant.replyHuman': 'Reach us via the contact page — phone 18123959245 or email bd01@1st56.com. Mention your route and cargo so we assign the right advisor.', + 'nanaAssistant.replyHuman': 'Reach us via the contact page — phone 13048804956 or email 13048804956@163.com. Mention your route and cargo so we assign the right advisor.', 'nanaAssistant.fallback': 'Tell me destination destCountry + weight to quote, or paste a waybill number to track — or talk to a human advisor.', 'nanaAssistant.emptyReply': 'No useful reply came back. Please try again with destination + weight, or a waybill number.', 'nanaAssistant.aiUnavailable': 'AI advisor is not configured yet. Please contact a human advisor or try later.', diff --git a/src/locale/nana/zh-CN.ts b/src/locale/nana/zh-CN.ts index 329cbe5..09ddabe 100644 --- a/src/locale/nana/zh-CN.ts +++ b/src/locale/nana/zh-CN.ts @@ -73,7 +73,7 @@ export default { 'nanaAssistant.trackHint': '直接发送运单号即可查轨迹,例如:IDE2607281746002926', 'nanaAssistant.replyVisibility': '从揽收到签收有关键节点更新 — 揽收、出口、干线、清关、妥投。异常升级前我们会主动预警。', 'nanaAssistant.replyAfterSales': '专属顾问负责异常、理赔与售后跟进,不用自己排队工单。请说明问题,如有单号一并提供。', - 'nanaAssistant.replyHuman': '请前往联系页 — 电话 18123959245 或邮箱 bd01@1st56.com。说明线路和货型,我们会安排对应顾问。', + 'nanaAssistant.replyHuman': '请前往联系页 — 电话 13048804956 或邮箱 13048804956@163.com。说明线路和货型,我们会安排对应顾问。', 'nanaAssistant.fallback': '可以说目的国和重量让我查价,或直接发运单号查轨迹;也可以联系人工顾问。', 'nanaAssistant.emptyReply': '刚才没有得到有效回复,请再发一次,或换个更具体的说法(目的国+重量 / 运单号)。', 'nanaAssistant.aiUnavailable': '智能顾问暂未配置或未就绪。请联系人工顾问,或稍后再试。', diff --git a/src/views/site/GradientWaves.vue b/src/views/site/GradientWaves.vue index 643bcf2..9338cbf 100644 --- a/src/views/site/GradientWaves.vue +++ b/src/views/site/GradientWaves.vue @@ -35,6 +35,8 @@ renderScale?: number; /** Target animation FPS; lower = less GPU. */ fps?: number; + /** Freeze animation (keep last frame). */ + paused?: boolean; } const hexToRgb = (hex: string): [number, number, number] => { @@ -228,12 +230,14 @@ void main() { maxDpr: 1.25, renderScale: 0.75, fps: 30, + paused: false, }); const containerRef = ref(null); let program: MainUniforms | null = null; let teardown: (() => void) | null = null; + let setPaused: ((next: boolean) => void) | null = null; const syncUniforms = () => { if (!program) return; @@ -305,20 +309,35 @@ void main() { if (!container) return; const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; - const dprCap = Math.max(1, props.maxDpr); - const scale = Math.min(1, Math.max(0.4, props.renderScale)); - const targetFps = reduceMotion ? 0 : Math.max(12, Math.min(60, props.fps)); + const isNarrow = window.matchMedia('(max-width: 860px)').matches; + const dprCap = Math.max(1, isNarrow ? Math.min(props.maxDpr, 1.1) : props.maxDpr); + const scale = Math.min( + 1, + Math.max(0.4, isNarrow ? Math.min(props.renderScale, 0.5) : props.renderScale), + ); + const allowMouse = props.mouseInteraction && !reduceMotion && !isNarrow; + const targetFps = reduceMotion + ? 0 + : Math.max(12, Math.min(60, isNarrow ? Math.min(props.fps, 20) : props.fps)); const frameMs = targetFps > 0 ? 1000 / targetFps : 0; - const renderer = new Renderer({ - webgl: 2, - alpha: true, - premultipliedAlpha: true, - antialias: false, - dpr: Math.min(window.devicePixelRatio || 1, dprCap), - }); + let renderer: Renderer; + try { + renderer = new Renderer({ + webgl: 2, + alpha: true, + premultipliedAlpha: true, + antialias: false, + dpr: Math.min(window.devicePixelRatio || 1, dprCap), + }); + } catch { + // WebGL 不可用:保留静态 paint 底,不挂 canvas + return; + } const gl = renderer.gl; + if (!gl) return; + gl.clearColor(0, 0, 0, 0); const canvas = gl.canvas as HTMLCanvasElement; canvas.style.width = '100%'; @@ -384,10 +403,15 @@ void main() { const currentMouse: [number, number] = [0.5, 0.5]; const targetMouse: [number, number] = [0.5, 0.5]; + let pointerLast = 0; + const POINTER_THROTTLE_MS = 40; // Window-level so parallax works behind UI overlays const onPointerMove = (e: PointerEvent) => { - if (!props.mouseInteraction) return; + if (!allowMouse) return; + const now = performance.now(); + if (now - pointerLast < POINTER_THROTTLE_MS) return; + pointerLast = now; const rect = container.getBoundingClientRect(); targetMouse[0] = (e.clientX - rect.left) / Math.max(1, rect.width); targetMouse[1] = 1.0 - (e.clientY - rect.top) / Math.max(1, rect.height); @@ -396,7 +420,7 @@ void main() { targetMouse[0] = 0.5; targetMouse[1] = 0.5; }; - if (props.mouseInteraction && !reduceMotion) { + if (allowMouse) { window.addEventListener('pointermove', onPointerMove, { passive: true }); window.addEventListener('blur', onPointerLeave); } @@ -405,12 +429,13 @@ void main() { let lastFrame = 0; let isVisible = true; let isPageVisible = !document.hidden; + let isPaused = props.paused; const t0 = performance.now(); const paint = (t: number) => { mu.iTime.value = (t - t0) * 0.001; - const tx = props.mouseInteraction ? targetMouse[0] : 0.5; - const ty = props.mouseInteraction ? targetMouse[1] : 0.5; + const tx = allowMouse ? targetMouse[0] : 0.5; + const ty = allowMouse ? targetMouse[1] : 0.5; currentMouse[0] += 0.05 * (tx - currentMouse[0]); currentMouse[1] += 0.05 * (ty - currentMouse[1]); const m = mu.uMouse.value; @@ -427,8 +452,8 @@ void main() { }; const tryStart = () => { - if (reduceMotion || targetFps <= 0) { - paint(performance.now()); + if (isPaused || reduceMotion || targetFps <= 0) { + if (!raf) paint(performance.now()); return; } if (isVisible && isPageVisible && raf === 0) raf = requestAnimationFrame(loop); @@ -440,6 +465,17 @@ void main() { } }; + setPaused = (next: boolean) => { + isPaused = next; + if (next) { + tryStop(); + // 冻结时再画一帧,避免停在半透明过渡态 + paint(performance.now()); + } else { + tryStart(); + } + }; + const io = new IntersectionObserver( ([entry]) => { isVisible = entry.isIntersecting; @@ -457,8 +493,9 @@ void main() { }; document.addEventListener('visibilitychange', onVisibility); - tryStart(); syncUniforms(); + mu.uEnableMouse.value = allowMouse; + if (!isPaused) tryStart(); // 先画一帧再淡入,盖在静态海天底上,避免灰/白闪 requestAnimationFrame(() => { paint(performance.now()); @@ -467,6 +504,7 @@ void main() { teardown = () => { tryStop(); + setPaused = null; ro.disconnect(); io.disconnect(); document.removeEventListener('visibilitychange', onVisibility); @@ -482,9 +520,17 @@ void main() { }; }); + watch( + () => props.paused, + (next) => { + setPaused?.(!!next); + }, + ); + onUnmounted(() => { teardown?.(); teardown = null; + setPaused = null; }); diff --git a/src/views/site/SiteAdvisorShell.vue b/src/views/site/SiteAdvisorShell.vue index 8c20198..c61545f 100644 --- a/src/views/site/SiteAdvisorShell.vue +++ b/src/views/site/SiteAdvisorShell.vue @@ -28,41 +28,27 @@ />
-
-
-

- - - {{ - shortTitle ? copy.titleRestShort : copy.titleRest - }} -

-
-
-
    -
  • - {{ isZh ? stat.value.zh : stat.value.en }} - {{ isZh ? stat.label.zh : stat.label.en }} -
  • -
-
+
+

+ + + {{ + shortTitle ? copy.titleRestShort : copy.titleRest + }} +

@@ -96,60 +82,35 @@ />
-
-
-

{{ copy.groupFulfill }}

-
- -
-
-
-

{{ copy.groupGrowth }}

-
- -
+ + +
@@ -273,9 +234,14 @@ import SiteMessageCard from './SiteMessageCard.vue'; import SiteIllusIcon from './SiteIllusIcon.vue'; import TextType from './TextType.vue'; - import { HOME_DOORS, HERO_STATS, SITE_FOLLOWUP_INTENTS, WELCOME_COPY } from './lib/site-welcome'; + import { + FULFILL_DOOR_IDS, + GROWTH_DOOR_IDS, + HOME_DOORS, + SITE_FOLLOWUP_INTENTS, + WELCOME_COPY, + } from './lib/site-welcome'; import { ROUTE_DEST_PRESETS } from './lib/portal-catalog'; - import { SITE_GLASS_PANEL_OPTS, useSiteLiquidGlass } from './lib/site-liquid-glass'; export type SiteChatMessage = { role: 'user' | 'assistant'; @@ -321,34 +287,24 @@ choice: [payload: { id: string; label: string; flowId: string }]; }>(); - const siteGlass = useSiteLiquidGlass(); - const glassReady = computed(() => !!siteGlass?.ready.value); - const glassFallback = computed(() => !!siteGlass?.fallback.value); - let removeGlassSurfaces: Array<() => void> = []; - - function teardownLiquidGlass() { - removeGlassSurfaces.forEach((remove) => remove()); - removeGlassSurfaces = []; - } - - async function setupLiquidGlass() { - await nextTick(); - if (!siteGlass || props.chatting) return; - teardownLiquidGlass(); - const doorSurfaces = Array.from( - document.querySelectorAll( - '#ai-advisor-shell .ai-welcome__command .ai-intent-door.lg-surface', - ), - ); - removeGlassSurfaces = doorSurfaces.map((el) => - siteGlass.registerSurface(el, SITE_GLASS_PANEL_OPTS), - ); - } - const copy = computed(() => (props.isZh ? WELCOME_COPY.zh : WELCOME_COPY.en)); const homeDests = ROUTE_DEST_PRESETS.filter((item) => item.id !== 'all'); - const primaryDoors = HOME_DOORS.filter((d) => d.primary); - const growthDoors = HOME_DOORS.filter((d) => !d.primary); + + function doorById(id: string) { + return HOME_DOORS.find((d) => d.id === id); + } + + const fulfillDoors = FULFILL_DOOR_IDS.map(doorById).filter( + (d): d is (typeof HOME_DOORS)[number] => !!d, + ); + const growthDoors = GROWTH_DOOR_IDS.map(doorById).filter( + (d): d is (typeof HOME_DOORS)[number] => !!d, + ); + const featuredDoor = HOME_DOORS.find((d) => d.id === 'agent') ?? null; + const ribbonDoors = [...fulfillDoors, featuredDoor, ...growthDoors].filter( + (d): d is (typeof HOME_DOORS)[number] => !!d, + ); + // 首屏即按视口决定短标题,避免挂载后再切导致 TextType 卡住只剩品牌前缀 const shortTitle = ref( typeof window !== 'undefined' && window.matchMedia('(max-width: 640px)').matches, @@ -356,6 +312,7 @@ const titleAnimate = ref( typeof window === 'undefined' || !window.matchMedia('(prefers-reduced-motion: reduce)').matches, ); + const draft = computed({ get: () => props.modelValue, set: (value) => emit('update:modelValue', value), @@ -400,30 +357,16 @@ titleAnimate.value = !mqReduce?.matches; } - watch( - () => props.chatting, - async (chatting) => { - if (chatting) { - teardownLiquidGlass(); - return; - } - await nextTick(); - void setupLiquidGlass(); - }, - ); - onMounted(() => { mqNarrow = window.matchMedia('(max-width: 640px)'); mqReduce = window.matchMedia('(prefers-reduced-motion: reduce)'); syncMediaPrefs(); mqNarrow.addEventListener('change', syncMediaPrefs); mqReduce.addEventListener('change', syncMediaPrefs); - void setupLiquidGlass(); }); onBeforeUnmount(() => { mqNarrow?.removeEventListener('change', syncMediaPrefs); mqReduce?.removeEventListener('change', syncMediaPrefs); - teardownLiquidGlass(); }); diff --git a/src/views/site/SiteHeader.vue b/src/views/site/SiteHeader.vue index 18f8aea..6e0926a 100644 --- a/src/views/site/SiteHeader.vue +++ b/src/views/site/SiteHeader.vue @@ -27,15 +27,30 @@
@@ -152,7 +147,6 @@ const contact = SITE_CONTACT; const loginUrl = officialLoginUrl(); const qrFailed = ref(false); - const copied = ref(false); const lang = computed(() => (props.isZh ? 'zh' : 'en') as const); const copy = computed(() => SITE_TOPIC_COPY[props.topic][lang.value]); const facts = computed(() => { @@ -168,16 +162,4 @@ const pack = SITE_TOPIC_COPY.pricing[lang.value]; emit('ask', { text: pack.askText, intentId: 'pricing' }); } - - async function copyWechat() { - try { - await navigator.clipboard.writeText(contact.wechat); - copied.value = true; - window.setTimeout(() => { - copied.value = false; - }, 1600); - } catch { - copied.value = false; - } - } diff --git a/src/views/site/index.vue b/src/views/site/index.vue index 26e66ea..bc5994e 100644 --- a/src/views/site/index.vue +++ b/src/views/site/index.vue @@ -36,22 +36,24 @@ :tilt="1.08" :zoom="0.92" :height="4.8" - :fog-depth="22" + :fog-depth="28" detail="low" - :brightness="1.08" - :opacity="1.0" + :brightness="1.06" + :opacity="0.86" :mouse-interaction="true" - :parallax-strength="0.4" + :parallax-strength="0.35" :grain="false" :fps="30" :render-scale="0.72" :max-dpr="1.25" + :paused="wavesPaused" /> - + chatting.value || historyOpen.value || panel.value != null, + ); + let previousTitle = ''; function readLang(): 'zh' | 'en' { @@ -294,10 +302,16 @@ if (location.hash !== next) history.replaceState(null, '', next); } + const panelTriggerEl = ref(null); + function openPanel(id: Exclude) { closeMobileNav(); historyOpen.value = false; if (id !== 'routes') routesDest.value = 'all'; + if (!panel.value) { + const active = document.activeElement; + panelTriggerEl.value = active instanceof HTMLElement ? active : null; + } panel.value = id; nav.value = id; syncHash(id); @@ -323,6 +337,12 @@ panel.value = null; nav.value = 'home'; syncHash('home'); + deactivatePanelFocus(); + const trigger = panelTriggerEl.value; + panelTriggerEl.value = null; + void nextTick(() => { + trigger?.focus?.(); + }); } function onHome() { @@ -343,6 +363,11 @@ } trackSiteEvent('home_nav', { nav_id: id }); if (NAV_PANELS.includes(id as PanelId)) { + // 同项再点:关闭面板 + if (panel.value === id) { + closePanel(); + return; + } openPanel(id as Exclude); return; } @@ -435,9 +460,18 @@ document.documentElement.style.setProperty('--ai-vv-offset-top', `${offsetTop}px`); } + function onPanelAfterEnter(el: Element) { + if (!(el instanceof HTMLElement)) return; + if (!el.classList.contains('site-nav-sheet')) return; + activatePanelFocus(el); + } + watch(panel, (id) => { + document.body.classList.toggle('site-panel-open', !!id); document.body.classList.toggle('site-panel-routes', id === 'routes'); document.body.classList.toggle('site-panel-services', id === 'services'); + document.body.classList.toggle('site-panel-topic', id === 'pricing' || id === 'about' || id === 'contact'); + if (!id) deactivatePanelFocus(); }); onMounted(() => { @@ -471,7 +505,13 @@ window.removeEventListener('resize', syncVisualViewport); window.visualViewport?.removeEventListener('resize', syncVisualViewport); window.visualViewport?.removeEventListener('scroll', syncVisualViewport); - document.body.classList.remove('site-panel-routes', 'site-panel-services'); + deactivatePanelFocus(); + document.body.classList.remove( + 'site-panel-open', + 'site-panel-routes', + 'site-panel-services', + 'site-panel-topic', + ); document.documentElement.classList.remove('command-home', 'app-boot-site'); closeMobileNav(); if (previousTitle) document.title = previousTitle; diff --git a/src/views/site/lib/site-panel-focus.ts b/src/views/site/lib/site-panel-focus.ts new file mode 100644 index 0000000..33c8016 --- /dev/null +++ b/src/views/site/lib/site-panel-focus.ts @@ -0,0 +1,49 @@ +/** Focus helpers for homepage nav sheets (dialog). */ + +const FOCUSABLE = + 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'; + +let trapRoot: HTMLElement | null = null; +let onKey: ((e: KeyboardEvent) => void) | null = null; + +function listFocusable(root: HTMLElement): HTMLElement[] { + return [...root.querySelectorAll(FOCUSABLE)].filter((el) => { + if (el.hasAttribute('disabled') || el.getAttribute('aria-hidden') === 'true') return false; + // offsetParent is null for fixed/absolute in some cases — also check client rects + const style = window.getComputedStyle(el); + if (style.visibility === 'hidden' || style.display === 'none') return false; + return el.getClientRects().length > 0; + }); +} + +export function activatePanelFocus(root: HTMLElement) { + deactivatePanelFocus(); + trapRoot = root; + const closeBtn = root.querySelector( + '.ai-guide-panel__close, .ai-routes-panel__close, [data-panel-close]', + ); + const nodes = listFocusable(root); + (closeBtn && nodes.includes(closeBtn) ? closeBtn : nodes[0])?.focus(); + + onKey = (e: KeyboardEvent) => { + if (e.key !== 'Tab' || !trapRoot) return; + const list = listFocusable(trapRoot); + if (list.length === 0) return; + const first = list[0]; + const last = list[list.length - 1]; + if (e.shiftKey && document.activeElement === first) { + e.preventDefault(); + last.focus(); + } else if (!e.shiftKey && document.activeElement === last) { + e.preventDefault(); + first.focus(); + } + }; + document.addEventListener('keydown', onKey, true); +} + +export function deactivatePanelFocus() { + if (onKey) document.removeEventListener('keydown', onKey, true); + onKey = null; + trapRoot = null; +} diff --git a/src/views/site/lib/site-welcome.ts b/src/views/site/lib/site-welcome.ts index 779250a..58ea96e 100644 --- a/src/views/site/lib/site-welcome.ts +++ b/src/views/site/lib/site-welcome.ts @@ -15,10 +15,12 @@ export const WELCOME_COPY = { emptyHistory: 'No conversations yet', heroCta: 'Register to see rates', statsAria: 'Service highlights', + trustLine: '30+ countries · 8,000+ sellers · 12M+ parcels · US air 5–7d', composeLead: 'Where are you shipping? Pick a destination, or ask below.', destAria: 'Pick a destination', - groupFulfill: 'Shipping', - groupGrowth: 'Benefits', + groupFulfill: 'Fulfillment', + groupGrowth: 'Growth & partners', + intentAria: 'Shipping and benefits shortcuts', partnerTag: 'Partners', partnerAria: 'Connected platforms and carriers', trustIcp: '粤ICP备2025463970号-2', @@ -41,10 +43,12 @@ export const WELCOME_COPY = { emptyHistory: '暂无会话', heroCta: '去注册看价', statsAria: '服务数据', + trustLine: '30+ 国家/地区 · 8,000+ 卖家 · 1,200万+ 包裹 · 美线空运 5–7 天', composeLead: '发到哪?点目的地看线路,或直接提问。', destAria: '选择目的地', - groupFulfill: '履约', - groupGrowth: '权益', + groupFulfill: '履约服务', + groupGrowth: '成长与合作', + intentAria: '履约与权益入口', partnerTag: '合作伙伴', partnerAria: '对接平台与服务商', trustIcp: '粤ICP备2025463970号-2', @@ -54,12 +58,12 @@ export const WELCOME_COPY = { }; export const SITE_CONTACT = { - phone: '18123959245', - email: 'bd01@1st56.com', - wechat: 'ydgjzzh', + phone: '13048804956', + email: '13048804956@163.com', icp: '粤ICP备2025463970号-2', - addressZh: '深圳宝安区福永怀德翠岗5区36栋', - addressEn: 'Bldg 36, Cuigang 5, Fuyong, Bao’an, Shenzhen', + addressZh: '深圳市宝安区福永街道怀德社区翠岗工业六区7栋怀德西部商务大厦A区4楼401', + addressEn: + "Rm 401, Zone A, Huaide Western Business Bldg, Bldg 7, Cuigang Industrial Zone 6, Fuyong, Bao'an, Shenzhen", }; export const HERO_STATS = [ @@ -240,24 +244,24 @@ export const HOME_DOORS = [ icon: 'hard', intentId: 'hard' as const, primary: true, - zh: { title: '敏感难发', hint: '先帮你看出得去的线路,再谈税。' }, - en: { title: 'Sensitive cargo', hint: 'We find a lane that can leave, then the tax path.' }, + zh: { title: '敏感难发', hint: '先看出得去的线路,再谈税' }, + en: { title: 'Sensitive cargo', hint: 'Find a lane that can leave, then tax.' }, }, { id: 'warehouse', icon: 'track', intentId: 'warehouse' as const, primary: true, - zh: { title: '仓储代发', hint: '入仓拣货打包,订单来了就发出去。' }, - en: { title: 'Warehouse fulfillment', hint: 'Inbound, pick & pack — ship when orders land.' }, + zh: { title: '仓储代发', hint: '入仓拣货打包,订单来即发' }, + en: { title: 'Warehouse fulfillment', hint: 'Inbound, pick & pack — ship on order.' }, }, { id: 'clearance', icon: 'clearance', intentId: 'compliance' as const, primary: true, - zh: { title: '报关退税', hint: '正式报关、退税,或没有专票怎么出。' }, - en: { title: 'Customs & VAT', hint: 'Declaration, refund, or shipping without invoices.' }, + zh: { title: '报关退税', hint: '正式报关、退税,或无票怎么出' }, + en: { title: 'Customs & VAT', hint: 'Declaration, refund, or ship without invoices.' }, }, { id: 'agent', @@ -267,11 +271,11 @@ export const HOME_DOORS = [ featured: true, zh: { title: '代理招募', - hint: '独立管理系统管客户,运费分成最高 10%。', + hint: '独立门户管客户,运费分成最高 10%', }, en: { title: 'Become an agent', - hint: 'Your own portal & clients — earn up to 10% freight commission.', + hint: 'Your portal & clients — up to 10% commission', }, }, { @@ -280,8 +284,8 @@ export const HOME_DOORS = [ intentId: 'member' as const, primary: false, featured: false, - zh: { title: '会员成长', hint: '近 12 个月发货积分定级,基础运费最高 95 折。' }, - en: { title: 'Member tiers', hint: '12-month shipping points — up to 95% on base freight.' }, + zh: { title: '会员成长', hint: '近 12 月积分定级,基础运费最高 95 折' }, + en: { title: 'Member tiers', hint: '12-month points — up to 95% on base freight' }, }, { id: 'invite', @@ -289,8 +293,8 @@ export const HOME_DOORS = [ intentId: 'invite' as const, primary: false, featured: false, - zh: { title: '邀新分成', hint: '好友派送成功,你拿运费余额 + 10 元券。' }, - en: { title: 'Invite & earn', hint: 'Friends deliver → freight credit + ¥10 coupon.' }, + zh: { title: '邀新分成', hint: '好友派送成功,运费余额 + 10 元券' }, + en: { title: 'Invite & earn', hint: 'Friends deliver → freight credit + ¥10 coupon' }, }, { id: 'newcomer', @@ -298,11 +302,14 @@ export const HOME_DOORS = [ intentId: 'newcomer' as const, primary: false, featured: false, - zh: { title: '新人福利', hint: '注册送券:首单、备货、第二单都有。' }, - en: { title: 'New-seller deals', hint: 'Coupons for first ship, stock-up, and second ship.' }, + zh: { title: '新人福利', hint: '注册送券:首单、备货、第二单' }, + en: { title: 'New-seller deals', hint: 'Coupons for first ship, stock-up, second ship' }, }, ] as const; +export const FULFILL_DOOR_IDS = ['hard', 'warehouse', 'clearance'] as const; +export const GROWTH_DOOR_IDS = ['newcomer', 'invite', 'member'] as const; + export const SITE_PARTNERS = [ { id: 'taobao', @@ -325,20 +332,6 @@ export const SITE_PARTNERS = [ 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', @@ -388,11 +381,4 @@ export const SITE_PARTNERS = [ 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/src/views/site/styles/ai-advisor.css b/src/views/site/styles/ai-advisor.css index 58e78bd..30c1774 100644 --- a/src/views/site/styles/ai-advisor.css +++ b/src/views/site/styles/ai-advisor.css @@ -108,12 +108,11 @@ --ai-paper-shadow-lift: inset 0 3px 12px rgba(40, 32, 20, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.06); - --ai-trust-bar-h: 88px; + --ai-trust-bar-h: 48px; } body.command-home { - /* Soft morning mist + warm accent pairing - Orange = titles / CTA; Navy = brand / stats / send; Grey = body / hints */ + /* Aviation clear: navy brand, orange CTA only, airy surfaces */ --ai-canvas: #f3f5f6; --ai-bg: #f3f5f6; --ai-brand: #023e8a; @@ -129,6 +128,8 @@ body.command-home { --ai-text-3: #6a7380; --ai-ink: var(--ai-text); --ai-muted: var(--ai-text-2); + --ai-display-font: 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', + 'Microsoft YaHei', sans-serif; --ai-glass-border: transparent; --ai-paper-edge: transparent; --ai-glass-shadow: var(--ai-glass-shadow-pressed, inset 0 3px 10px rgba(15, 23, 42, 0.1)); @@ -152,6 +153,12 @@ body.command-home #header.header.sticked { box-shadow: none; } +/* 面板打开时顶栏压过 backdrop,便于同项再点关闭 */ +body.command-home.site-panel-open #header.header, +body.command-home.site-panel-open #header.header.sticked { + z-index: 998; +} + body.command-home #header .container-xl { position: relative; max-width: none; @@ -414,6 +421,26 @@ body.command-home #navbar .site-nav-dock a { inset 0 1px 0 rgba(255, 255, 255, 0.9); } + /* 面板打开:滑块略偏品牌色,当前项更醒目 */ + body.command-home.site-panel-open .site-nav-dock { + box-shadow: + 0 14px 44px rgba(15, 23, 42, 0.12), + 0 2px 8px rgba(15, 23, 42, 0.05); + } + + body.command-home.site-panel-open .site-nav-dock__slider { + background: color-mix(in srgb, var(--ai-brand, #023e8a) 10%, rgba(255, 255, 255, 0.72)); + box-shadow: + 0 4px 16px rgba(2, 62, 138, 0.12), + inset 0 1px 0 rgba(255, 255, 255, 0.92); + } + + body.command-home #navbar .site-nav-dock a.is-panel, + body.command-home #navbar .site-nav-dock a.is-panel:focus { + color: var(--ai-brand, #023e8a); + font-weight: 650; + } + body.command-home #navbar li.site-nav-dock:hover > a, body.command-home #navbar .site-nav-dock:hover > a { color: inherit; @@ -1413,14 +1440,14 @@ body.command-home .ai-stage-map--eu { .site-nav-sheet { position: fixed; - top: calc(var(--ai-header-h) + 8px); + top: calc(var(--ai-header-h) + 14px); left: 50%; right: auto; bottom: auto; z-index: 996; display: flex; flex-direction: column; - max-height: calc(100vh - var(--ai-header-h) - 20px); + max-height: calc(100vh - var(--ai-header-h) - 28px); overflow: hidden; transform: translateX(-50%); border: none; @@ -2520,12 +2547,16 @@ body.command-home .ai-stage-map--eu { display: none; } +/* 首页 hero 靠上偏光学中心,不垂直死居中(避免悬空) */ .ai-welcome { display: flex; flex-direction: column; justify-content: flex-start; + align-items: center; min-height: 0; - padding: 0 0 16px; + width: 100%; + padding: clamp(4px, 1.2vh, 16px) 0 16px; + box-sizing: border-box; } .ai-welcome.is-hidden { @@ -2545,47 +2576,43 @@ body.command-home .ai-stage-map--eu { } .ai-welcome__intro, -.ai-welcome__meta, .ai-welcome-compose-panel, -.ai-intent-group, +.ai-welcome-trustline, +.ai-intent-section, .ai-trust-bar { animation: ai-welcome-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both; } .ai-welcome__intro { - animation-delay: 0.12s; -} - -.ai-welcome__meta { - animation-delay: 0.26s; + animation-delay: 0.1s; } .ai-welcome-compose-panel { - animation-delay: 0.38s; + animation-delay: 0.24s; } -.ai-intent-group:nth-child(1) { - animation-delay: 0.52s; +.ai-welcome-trustline { + animation-delay: 0.34s; } -.ai-intent-group:nth-child(2) { - animation-delay: 0.66s; +.ai-intent-section { + animation-delay: 0.44s; } .ai-trust-bar { - animation-delay: 0.8s; + animation-delay: 0.7s; } .ai-welcome__hero { position: relative; display: flex; flex-direction: column; - align-items: stretch; + align-items: center; width: 100%; max-width: var(--ai-content-max); margin-inline: auto; - gap: 2px; - padding: 0 0 12px; + gap: 4px; + padding: 0 0 16px; isolation: isolate; } @@ -2629,11 +2656,12 @@ body.command-home #navbar .site-nav-avatar:hover { z-index: 2; display: flex; flex-direction: column; + align-items: center; gap: 28px; width: 100%; max-width: var(--ai-content-max); margin-inline: auto; - margin-top: -20px; + margin-top: -24px; border: none; border-radius: 0; background: transparent; @@ -2643,31 +2671,21 @@ body.command-home #navbar .site-nav-avatar:hover { overflow: visible; } -.ai-welcome__deck { - position: relative; - z-index: 1; - width: 100%; - margin: 0; - padding: 8px 8px 2px; - border: none; - border-radius: 0; - background: transparent; - backdrop-filter: none; - -webkit-backdrop-filter: none; - box-shadow: none; -} - .ai-welcome__intro { text-align: center; + padding: 0 12px; } .ai-welcome-title { width: auto; max-width: 100%; - margin: 0 auto 0; + margin: 0 auto; + /* 中英同一套字族,避免 IDE 走 Avenir、中文掉苹方造成「一大一小」 */ + font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', + sans-serif; font-size: clamp(1.55rem, 2.2vw + 0.85rem, 2.65rem); - font-weight: 800; - letter-spacing: -0.03em; + font-weight: 700; + letter-spacing: -0.02em; line-height: 1.22; white-space: nowrap; text-align: center; @@ -2678,70 +2696,57 @@ body.command-home #navbar .site-nav-avatar:hover { .ai-welcome-title .text-type, .ai-welcome-title .text-type__content, .ai-welcome-title .text-type__cursor, -.ai-welcome-title__brand { - font-size: inherit; +.ai-welcome-title__brand, +.ai-welcome-title__type { + display: inline; + font-size: 1em; font-weight: inherit; font-family: inherit; letter-spacing: inherit; + line-height: inherit; + vertical-align: baseline; color: inherit; } +/* TextType 默认 inline-block + pre-wrap,会让后半段视觉偏大/错位 */ +.ai-welcome-title .text-type { + display: inline; + white-space: inherit; +} + .ai-welcome-title__dot { display: inline; - font-size: inherit; + font-size: 1em; font-weight: inherit; line-height: inherit; letter-spacing: 0.02em; color: inherit; } -.ai-welcome-sub { - margin: 0 auto 0; - max-width: none; - font-size: 0.92rem; - line-height: 1.45; - color: var(--ai-text-2); - white-space: nowrap; -} - -.ai-welcome-sub__accent { - font-weight: 700; - color: var(--ai-sky); -} - -.ai-welcome__meta { - display: flex; - align-items: center; - margin-top: 16px; - padding-top: 0; - border: none; - border-top: none; - background: transparent; - box-shadow: none; -} - .ai-welcome__command { - padding: 0 2px 8px; + padding: 0 2px 12px; border-top: none; background: transparent; display: flex; flex-direction: column; - gap: 28px; + align-items: stretch; + gap: 24px; + width: 100%; } -/* Welcome compose dock — soft elevated frost card */ +/* Welcome compose — light frost, not a heavy card stack */ .ai-welcome-compose-panel { position: relative; isolation: isolate; overflow: hidden; margin: 0; - padding: 22px 24px 20px; - border-radius: 24px; - border: 1px solid rgba(255, 255, 255, 0.9); - background: color-mix(in srgb, #fff 82%, #e8eef2); - backdrop-filter: blur(22px) saturate(160%); - -webkit-backdrop-filter: blur(22px) saturate(160%); - box-shadow: none; + padding: 20px 22px 18px; + border-radius: 18px; + border: 1px solid rgba(255, 255, 255, 0.72); + background: rgba(255, 255, 255, 0.55); + backdrop-filter: blur(14px) saturate(140%); + -webkit-backdrop-filter: blur(14px) saturate(140%); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65); } .ai-welcome-compose-panel::before { @@ -2755,13 +2760,14 @@ body.command-home #navbar .site-nav-avatar:hover { .ai-welcome-compose-panel .ai-welcome-cta-link { position: absolute; - top: 16px; - right: 18px; + top: 18px; + right: 20px; z-index: 1; } .ai-welcome-compose-panel .ai-welcome-compose__lead { padding-right: 7.5em; + text-align: left; } .ai-welcome-cta-link { @@ -2799,259 +2805,343 @@ body.command-home #navbar .site-nav-avatar:hover { transform: translateY(-1px); } +/* 意图区 · 双区分类网格(履约 3 + 代理 featured + 成长 3) */ +.ai-welcome-trustline { + margin: 2px 4px 0; + padding: 0 4px; + font-size: 0.78rem; + line-height: 1.45; + letter-spacing: 0.01em; + color: var(--ai-text-3, #6a7380); + text-align: center; + opacity: 0.92; +} + .ai-intent-section { display: flex; flex-direction: column; - gap: 22px; -} - -.ai-intent-group__label { - margin: 0 0 10px 2px; - font-size: 0.7rem; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--ai-text-3, #6a7380); -} - -.ai-intent-group:not(.ai-intent-group--growth) .ai-intent-group__label { - color: color-mix(in srgb, var(--ai-brand, #023e8a) 42%, var(--ai-text-3, #6a7380)); -} - -.ai-intent-grid--primary { - grid-template-columns: repeat(3, minmax(0, 1fr)); -} - -.ai-welcome__command .ai-intent-grid { - gap: 12px 14px; - margin: 0; - padding: 0; - background: none; -} - -.ai-welcome__command .ai-intent-grid--growth { - grid-template-columns: repeat(4, minmax(0, 1fr)); - grid-template-rows: auto; - align-items: stretch; - gap: 12px 14px; -} - -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door { - flex-direction: column; - align-items: stretch; - justify-content: flex-start; - aspect-ratio: auto; width: 100%; - min-height: 0; - height: auto; - padding: 10px 12px; - gap: 5px; + margin: 2px 0 0; + min-width: 0; } -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door__head { +/* 单行入口:正反梯形交替咬合;明暗只做淡差,不压字 */ +.ai-intent-ribbon { + --ai-ribbon-cut: 11px; + --ai-ribbon-overlap: 11px; + --ai-ribbon-end-r: 12px; + --ai-ribbon-light: rgba(255, 255, 255, 0.78); + --ai-ribbon-soft: color-mix(in srgb, #d8e4ef 38%, rgba(255, 255, 255, 0.7)); + position: relative; display: flex; - align-items: center; - gap: 8px; + align-items: stretch; + gap: 0; + width: 100%; min-width: 0; + height: 46px; + margin: 0 0 28px; + padding: 0; + border: 0; + background: transparent; + box-shadow: none; + overflow: visible; + isolation: isolate; + filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45)); } -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon { - width: 36px; - height: 36px; -} - -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon .ai-icon--illus { - width: 36px; - height: 36px; -} - -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door__title { - flex: 1; +.ai-intent-ribbon__item { + position: relative; + flex: 1 1 0; + display: block; min-width: 0; - font-size: 0.86rem; - font-weight: 700; - line-height: 1.25; - color: var(--ai-text, #121820); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + height: 100%; + margin: 0 0 0 calc(var(--ai-ribbon-overlap) * -1); + padding: 0; + border: 0; + background: transparent; + color: #1c2530; + font: inherit; + text-align: center; + cursor: pointer; } -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door__hint { - font-size: 0.7rem; - line-height: 1.35; - color: var(--ai-text-3); - -webkit-line-clamp: 2; - line-clamp: 2; +.ai-intent-ribbon__item:first-child { + margin-left: 0; } -/* 履约 / 权益门卡(liquid-glass 表面) - 未就绪也用半透明玻璃底,避免「先白再玻璃」闪一下;实心霜面仅 fallback */ -.ai-welcome__command .ai-intent-door { - overflow: hidden; - border: 1px solid rgba(255, 255, 255, 0.42); - border-radius: var(--ai-dock-radius); - padding: 14px 14px; - background: rgba(255, 255, 255, 0.16); - backdrop-filter: none; - -webkit-backdrop-filter: none; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38); - transition: - border-color 0.2s var(--ai-ease), - box-shadow 0.2s var(--ai-ease), - transform 0.2s var(--ai-ease); - --lg-foreground: var(--ai-brand, #023e8a); -} - -.ai-welcome__command .ai-intent-door::before { - display: none; -} - -.ai-welcome__command .ai-intent-door::after { - display: none; -} - -.ai-welcome__command .ai-intent-door__icon { +/* face 承担裁切与底色;hint 在裁切外,避免被 clip 掉 */ +.ai-intent-ribbon__face { + position: absolute; + inset: 0; display: inline-flex; align-items: center; justify-content: center; - width: 52px; - height: 52px; - flex-shrink: 0; - border: none; - background: transparent; - box-shadow: none; + gap: 5px; + padding: 0 calc(var(--ai-ribbon-cut) + 6px); + color: inherit; + transition: + background 0.18s var(--ai-ease), + color 0.18s var(--ai-ease), + filter 0.18s var(--ai-ease); } -.ai-welcome__command .ai-intent-door__icon .ai-icon--illus { - width: 52px; - height: 52px; +.ai-intent-ribbon__item:first-child .ai-intent-ribbon__face { + padding-left: 14px; } -.ai-welcome__command .ai-intent-door.is-primary { +.ai-intent-ribbon__item:last-child .ai-intent-ribbon__face { + padding-right: 14px; +} + +/* 奇数:正梯形 · 亮 */ +.ai-intent-ribbon__item:nth-child(odd) .ai-intent-ribbon__face { + background: var(--ai-ribbon-light); + clip-path: polygon( + var(--ai-ribbon-cut) 0, + calc(100% - var(--ai-ribbon-cut)) 0, + 100% 100%, + 0 100% + ); +} + +/* 偶数:反梯形 · 淡雾 */ +.ai-intent-ribbon__item:nth-child(even) .ai-intent-ribbon__face { + background: var(--ai-ribbon-soft); + clip-path: polygon( + 0 0, + 100% 0, + calc(100% - var(--ai-ribbon-cut)) 100%, + var(--ai-ribbon-cut) 100% + ); +} + +/* 首尾:外侧圆角直边(多点近似)+ 内侧斜切 */ +.ai-intent-ribbon__item:first-child .ai-intent-ribbon__face { + clip-path: polygon( + 0 12px, + 0.3px 9.2px, + 1.1px 6.6px, + 2.4px 4.3px, + 4.2px 2.5px, + 6.4px 1.1px, + 9px 0.3px, + 12px 0, + calc(100% - var(--ai-ribbon-cut)) 0, + 100% 100%, + 12px 100%, + 9px calc(100% - 0.3px), + 6.4px calc(100% - 1.1px), + 4.2px calc(100% - 2.5px), + 2.4px calc(100% - 4.3px), + 1.1px calc(100% - 6.6px), + 0.3px calc(100% - 9.2px), + 0 calc(100% - 12px) + ); +} + +.ai-intent-ribbon__item:last-child .ai-intent-ribbon__face { + clip-path: polygon( + var(--ai-ribbon-cut) 0, + calc(100% - 12px) 0, + calc(100% - 9px) 0.3px, + calc(100% - 6.4px) 1.1px, + calc(100% - 4.2px) 2.5px, + calc(100% - 2.4px) 4.3px, + calc(100% - 1.1px) 6.6px, + calc(100% - 0.3px) 9.2px, + 100% 12px, + 100% calc(100% - 12px), + calc(100% - 0.3px) calc(100% - 9.2px), + calc(100% - 1.1px) calc(100% - 6.6px), + calc(100% - 2.4px) calc(100% - 4.3px), + calc(100% - 4.2px) calc(100% - 2.5px), + calc(100% - 6.4px) calc(100% - 1.1px), + calc(100% - 9px) calc(100% - 0.3px), + calc(100% - 12px) 100%, + 0 100% + ); +} + +.ai-intent-ribbon__item:nth-child(1) { z-index: 1; } +.ai-intent-ribbon__item:nth-child(2) { z-index: 2; } +.ai-intent-ribbon__item:nth-child(3) { z-index: 3; } +.ai-intent-ribbon__item:nth-child(4) { z-index: 4; } +.ai-intent-ribbon__item:nth-child(5) { z-index: 5; } +.ai-intent-ribbon__item:nth-child(6) { z-index: 6; } +.ai-intent-ribbon__item:nth-child(7) { z-index: 7; } + +.ai-intent-ribbon__icon { position: relative; - padding: 16px 16px; - border-radius: 14px; - background: rgba(255, 255, 255, 0.2); - border: 1px solid rgba(255, 255, 255, 0.48); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42); + z-index: 1; + display: inline-flex; + flex-shrink: 0; + align-items: center; + justify-content: center; + width: 15px; + height: 15px; + color: color-mix(in srgb, currentColor 72%, transparent); } -.ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__icon { - width: 56px; - height: 56px; - background: transparent; - border: none; - box-shadow: none; -} - -.ai-welcome__command .ai-intent-door.is-primary .ai-icon--illus { - width: 56px; - height: 56px; -} - -.ai-welcome__command .ai-intent-door:hover { - border-color: rgba(255, 255, 255, 0.62); - background: rgba(255, 255, 255, 0.22); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); - transform: translateY(-1px); -} - -.ai-welcome__command .ai-intent-door.is-primary:hover { - border-color: rgba(255, 255, 255, 0.68); - background: rgba(255, 255, 255, 0.26); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); -} - -/* - liquid-glass 就绪后仍保留轻霜面+细边: - 全透明时 clear/低折射几乎看不见,线上会像「玻璃没了」。 - 折射叠在半透明底上,既有 LG 效果又有卡片轮廓。 -*/ -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback), -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback).is-primary, -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback) { - background: rgba(255, 255, 255, 0.22); - border-color: rgba(255, 255, 255, 0.55); - box-shadow: - inset 0 1px 0 rgba(255, 255, 255, 0.5), - 0 1px 2px rgba(15, 23, 42, 0.04); -} - -.ai-welcome__command .ai-intent-door.lg-surface:not(.is-glass-ready), -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-fallback { - visibility: visible !important; -} - -/* 仅 WebGPU 不可用时才用实心霜面,避免首屏白闪 */ -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-fallback, -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-fallback.is-primary, -.ai-welcome__command .ai-intent-grid--growth .ai-intent-door.lg-surface.is-glass-fallback { - background: color-mix(in srgb, #fff 72%, #e8eef2); - border: 1px solid rgba(255, 255, 255, 0.72); - box-shadow: - inset 0 1px 0 rgba(255, 255, 255, 0.75), - 0 1px 2px rgba(15, 23, 42, 0.03); -} - -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback):hover, -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback).is-primary:hover { - background: rgba(255, 255, 255, 0.28); - border-color: rgba(255, 255, 255, 0.68); - box-shadow: - inset 0 1px 0 rgba(255, 255, 255, 0.58), - 0 2px 8px rgba(15, 23, 42, 0.05); - transform: translateY(-1px); -} - -.ai-welcome__command .ai-intent-door__title { - font-size: 0.94rem; - font-weight: 700; - letter-spacing: -0.015em; - line-height: 1.28; - color: var(--ai-brand, #023e8a); - transition: color 0.18s var(--ai-ease); -} - -.ai-welcome__command .ai-intent-door:hover .ai-intent-door__title, -.ai-welcome__command .ai-intent-door:focus-visible .ai-intent-door__title { - color: var(--ai-accent, #e96a26); -} - -.ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__title { - font-size: 1rem; - font-weight: 800; - color: var(--ai-brand, #023e8a); -} - -.ai-welcome__command .ai-intent-door:focus-visible { - outline: none; - box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.12); -} - -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback):focus-visible, -.ai-welcome__command .ai-intent-door.lg-surface.is-glass-ready:not(.is-glass-fallback).is-primary:focus-visible { - box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.14); -} - -.ai-welcome__command .ai-intent-door.is-primary:hover .ai-intent-door__title, -.ai-welcome__command .ai-intent-door.is-primary:focus-visible .ai-intent-door__title { - color: var(--ai-accent, #e96a26); -} - -.ai-welcome__command .ai-intent-door__hint { - font-size: 0.76rem; - line-height: 1.4; - color: var(--ai-text-3); - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - line-clamp: 2; +.ai-intent-ribbon__label { + position: relative; + z-index: 1; + display: block; + min-width: 0; + max-width: 100%; overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 0.78rem; + font-weight: 650; + letter-spacing: 0.01em; + line-height: 1.2; } -.ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__hint { - font-size: 0.78rem; - color: var(--ai-text-2); +/* hover / focus 轻提示(在 face 裁切之外) */ +.ai-intent-ribbon__hint { + position: absolute; + left: 50%; + top: calc(100% + 10px); + z-index: 20; + width: max-content; + max-width: min(240px, 42vw); + padding: 6px 10px; + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.7); + background: rgba(255, 255, 255, 0.94); + box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1); + color: var(--ai-text-2, #3d4754); + font-size: 0.7rem; + font-weight: 500; + letter-spacing: 0.01em; + line-height: 1.35; + text-align: center; + white-space: normal; + opacity: 0; + transform: translate(-50%, 4px); + pointer-events: none; + transition: + opacity 0.16s var(--ai-ease), + transform 0.16s var(--ai-ease); +} + +.ai-intent-ribbon__item:hover .ai-intent-ribbon__hint, +.ai-intent-ribbon__item:focus-visible .ai-intent-ribbon__hint { + opacity: 1; + transform: translate(-50%, 0); +} + +/* 焦点入口:默认轻字色 + 底边;hover 再提亮 */ +.ai-intent-ribbon__item.is-featured { + z-index: 8; + color: var(--ai-brand, #023e8a); +} + +.ai-intent-ribbon__item.is-featured .ai-intent-ribbon__face { + background: color-mix(in srgb, var(--ai-brand, #023e8a) 4%, var(--ai-ribbon-soft)); +} + +.ai-intent-ribbon__item.is-featured .ai-intent-ribbon__icon { + color: var(--ai-brand, #023e8a); +} + +.ai-intent-ribbon__item.is-featured .ai-intent-ribbon__label { + font-weight: 700; +} + +.ai-intent-ribbon__item.is-featured .ai-intent-ribbon__face::before { + content: ''; + position: absolute; + left: 18%; + right: 18%; + bottom: 5px; + height: 2px; + border-radius: 999px; + background: color-mix(in srgb, var(--ai-brand, #023e8a) 55%, transparent); + pointer-events: none; + z-index: 1; +} + +.ai-intent-ribbon__item:nth-child(odd):hover .ai-intent-ribbon__face, +.ai-intent-ribbon__item:nth-child(odd):focus-visible .ai-intent-ribbon__face { + background: rgba(255, 255, 255, 0.94); +} + +.ai-intent-ribbon__item:nth-child(even):hover .ai-intent-ribbon__face, +.ai-intent-ribbon__item:nth-child(even):focus-visible .ai-intent-ribbon__face { + background: color-mix(in srgb, #d8e4ef 28%, rgba(255, 255, 255, 0.86)); +} + +.ai-intent-ribbon__item.is-featured:hover .ai-intent-ribbon__face, +.ai-intent-ribbon__item.is-featured:focus-visible .ai-intent-ribbon__face { + background: color-mix(in srgb, var(--ai-brand, #023e8a) 10%, #fff); +} + +.ai-intent-ribbon__item:hover, +.ai-intent-ribbon__item:focus-visible { + z-index: 9; + outline: none; +} + +/* clip-path 跟形焦点环打在 face 上 */ +.ai-intent-ribbon__item:focus-visible .ai-intent-ribbon__face { + filter: + drop-shadow(0 0 0.5px rgba(2, 62, 138, 0.95)) + drop-shadow(0 0 2.5px rgba(2, 62, 138, 0.55)) + drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45)); +} + +.ai-intent-ribbon__item:disabled { + opacity: 0.55; + cursor: not-allowed; +} + +.ai-intent-ribbon__item:disabled .ai-intent-ribbon__face { + filter: none; +} + +.ai-intent-ribbon__item:disabled .ai-intent-ribbon__hint { + display: none; +} + +/* 英文 / 窄屏:藏 icon、略缩字 */ +.ai-intent-ribbon.is-en .ai-intent-ribbon__face { + gap: 0; +} + +.ai-intent-ribbon.is-en .ai-intent-ribbon__icon { + display: none; +} + +.ai-intent-ribbon.is-en .ai-intent-ribbon__label { + font-size: 0.72rem; + letter-spacing: 0; +} + +@media (max-width: 860px) { + .ai-intent-ribbon__icon { + display: none; + } + + .ai-intent-ribbon__face { + gap: 0; + } + + .ai-intent-ribbon__label { + font-size: 0.72rem; + } + + .ai-intent-ribbon__hint { + max-width: min(200px, 70vw); + font-size: 0.66rem; + } +} + +@media (max-width: 640px) { + .ai-welcome-trustline { + font-size: 0.72rem; + line-height: 1.45; + } } .ai-welcome-plane { @@ -3060,19 +3150,21 @@ body.command-home #navbar .site-nav-avatar:hover { display: flex; justify-content: center; width: 100%; - margin: -4px 0 -16px; + margin: -2px 0 -18px; pointer-events: none; } .ai-welcome-plane img { position: relative; z-index: 2; - width: min(360px, 32vw); + width: min(448px, 40vw); height: auto; display: block; - filter: drop-shadow(0 12px 24px rgba(var(--ai-sky-rgb), 0.1)); + filter: drop-shadow(0 14px 28px rgba(var(--ai-sky-rgb), 0.12)); transform-origin: 50% 60%; - animation: aiPlaneIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; + animation: + aiPlaneIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both, + aiPlaneBreathe 5.6s ease-in-out 1.2s infinite; } @keyframes aiPlaneIn { @@ -3086,12 +3178,22 @@ body.command-home #navbar .site-nav-avatar:hover { } } +@keyframes aiPlaneBreathe { + 0%, + 100% { + transform: translate3d(0, 0, 0); + } + 50% { + transform: translate3d(0, -6px, 0); + } +} + @media (prefers-reduced-motion: reduce) { .ai-welcome-plane img, .ai-welcome__intro, - .ai-welcome__meta, .ai-welcome-compose-panel, - .ai-intent-group, + .ai-welcome-trustline, + .ai-intent-section, .ai-trust-bar { animation: none !important; } @@ -3100,16 +3202,16 @@ body.command-home #navbar .site-nav-avatar:hover { /* 笔记本矮屏:必须放在飞机基础规则之后,否则会被桌面 width 盖掉 */ @media (max-height: 900px) { body.command-home .ai-welcome__stack { - gap: 16px; - margin-top: -32px; + gap: 22px; + margin-top: -28px; } body.command-home .ai-welcome__command { - gap: 16px; + gap: 18px; } body.command-home .ai-intent-section { - gap: 14px; + margin-top: 2px; } body.command-home .ai-welcome__intro { @@ -3117,52 +3219,12 @@ body.command-home #navbar .site-nav-avatar:hover { } body.command-home .ai-welcome-stats { - margin-top: 6px; + margin-top: 0; gap: 10px 18px; } - body.command-home .ai-intent-group__label { - margin-bottom: 4px; - } - - body.command-home .ai-welcome__command .ai-intent-grid, - body.command-home .ai-welcome__command .ai-intent-grid--growth { - gap: 6px 8px; - } - - body.command-home .ai-welcome__command .ai-intent-door.is-primary { - padding: 10px 12px; - } - - body.command-home .ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__icon, - body.command-home .ai-welcome__command .ai-intent-door.is-primary .ai-icon--illus { - width: 40px; - height: 40px; - } - - body.command-home .ai-welcome__command .ai-intent-grid--growth { - gap: 8px; - } - - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door { - padding: 8px 10px; - gap: 4px; - } - - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon, - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon .ai-icon--illus { - width: 30px; - height: 30px; - } - - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__title { - font-size: 0.84rem; - } - - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__hint { - font-size: 0.68rem; - -webkit-line-clamp: 2; - line-clamp: 2; + body.command-home .ai-intent-ribbon { + height: 42px; } body.command-home .ai-welcome-compose-panel { @@ -3194,7 +3256,7 @@ body.command-home #navbar .site-nav-avatar:hover { } body.command-home .ai-welcome__meta { - margin-top: 10px; + margin-top: 28px; padding-top: 0; } @@ -3214,13 +3276,8 @@ body.command-home #navbar .site-nav-avatar:hover { font-size: 0.78rem; } - body.command-home .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__hint { - -webkit-line-clamp: 1; - line-clamp: 1; - } - body.command-home .ai-trust-bar { - --ai-trust-bar-h: 76px; + --ai-trust-bar-h: 44px; margin-top: 8px; padding-top: 8px; padding-bottom: 10px; @@ -3431,7 +3488,7 @@ body.command-home #navbar .site-nav-avatar:hover { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; - color: var(--ai-brand, #023e8a); + color: var(--ai-text-3, #86909c); } .ai-welcome-stats__label { @@ -3442,42 +3499,9 @@ body.command-home #navbar .site-nav-avatar:hover { white-space: nowrap; } -.ai-intent-grid { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); - grid-template-rows: auto; - gap: 10px; -} - -.ai-intent-grid.ai-intent-grid--growth, -.ai-welcome__command .ai-intent-grid--growth { - grid-template-columns: repeat(4, minmax(0, 1fr)); -} - -.ai-intent-door.is-primary { - flex-direction: row; - align-items: flex-start; - gap: 12px; - min-height: 0; - padding: 16px 14px; -} - -.ai-intent-door.is-primary .ai-intent-door__icon { - width: 48px; -} - -.ai-intent-door.is-primary .ai-intent-door__icon .ai-icon { - width: 44px; - height: 44px; -} - -.ai-intent-door.is-primary .ai-intent-door__icon .ai-icon--illus { - width: 48px; - height: 48px; -} - +/* legacy primary-door sizing kept soft so dual-zone grid rules win */ .ai-intent-door.is-primary .ai-intent-door__hint { - font-size: 0.82rem; + font-size: 0.75rem; } .ai-cover-chip { @@ -3592,9 +3616,16 @@ body.command-home #navbar .site-nav-avatar:hover { } .ai-icon.ai-icon--illus { - width: 44px; - height: 44px; + width: 32px; + height: 32px; flex-shrink: 0; + color: inherit; +} + +/* 入口缎带内强制小线稿,避免被全局 32px 盖掉 */ +.ai-intent-ribbon__icon .ai-icon.ai-icon--illus { + width: 15px; + height: 15px; } .ai-intent-door__icon { @@ -3602,13 +3633,13 @@ body.command-home #navbar .site-nav-avatar:hover { align-items: flex-start; justify-content: center; flex-shrink: 0; - width: 44px; + width: 36px; height: auto; padding: 0; border: none; background: none; box-shadow: none; - color: var(--ai-ink); + color: var(--ai-ink, #1d2129); } .ai-intent-door__icon .si { @@ -3637,18 +3668,18 @@ body.command-home #navbar .site-nav-avatar:hover { color: var(--ai-text-2); } -/* Partner strip ? fixed + centered */ +/* Partner strip:标签左 + logo 同一行 */ .ai-partner-marquee { display: flex; - flex-direction: column; + flex-direction: row; align-items: center; - justify-content: center; - gap: 8px; + justify-content: flex-start; + gap: 12px; min-width: 0; width: 100%; margin: 0; padding: 0; - text-align: center; + text-align: left; } .ai-partner-marquee__tag { @@ -3683,12 +3714,15 @@ body.command-home #navbar .site-nav-avatar:hover { } .ai-partner-marquee__viewport.is-static { - flex: 0 1 auto; - width: 100%; - max-width: min(920px, 100%); - margin-inline: auto; + display: flex; + flex: 1 1 auto; + align-items: center; + justify-content: center; + width: auto; + max-width: none; + margin-inline: 0; cursor: default; - overflow: visible; + overflow: hidden; mask-image: none; -webkit-mask-image: none; } @@ -3696,14 +3730,15 @@ body.command-home #navbar .site-nav-avatar:hover { .ai-partner-marquee__viewport.is-static .ai-partner-marquee__track { display: flex; justify-content: center; - width: 100%; - max-width: 100%; + width: max-content; + max-width: none; + margin-inline: auto; transform: none !important; will-change: auto; } .ai-partner-marquee__viewport.is-static .ai-partner-marquee__strip { - flex-wrap: wrap; + flex-wrap: nowrap; justify-content: center; gap: 8px; } @@ -4170,7 +4205,7 @@ body.command-home #navbar .site-nav-avatar:hover { } .ai-welcome-compose__lead { - margin: 0 0 14px; + margin: 0 0 16px; padding: 0; font-size: 0.94rem; font-weight: 700; @@ -4187,8 +4222,9 @@ body.command-home .ai-welcome-compose__lead { .ai-home-dests { display: flex; flex-wrap: wrap; - gap: 10px; - margin: 0 0 14px; + justify-content: flex-start; + gap: 12px; + margin: 0 0 16px; padding: 0; } @@ -4535,14 +4571,15 @@ body.command-home .ai-welcome-compose__lead { .ai-trust-bar { position: relative; display: flex; - flex-direction: column; + flex-direction: row; align-items: center; justify-content: center; + gap: 0; width: 100vw; max-width: 100vw; margin: 12px 0 0; margin-left: calc(50% - 50vw); - padding: 12px max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px)); + padding: 10px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); box-sizing: border-box; border: none; border-top: 1px solid color-mix(in srgb, var(--ai-border) 28%, transparent); @@ -4579,24 +4616,49 @@ body.command-home .ai-welcome-compose__lead { color: var(--ai-text-2); } +/* Tag / ICP 脱出文档流,合作伙伴条相对整页水平居中 */ .ai-trust-bar .ai-partner-marquee { + position: relative; + flex: 1 1 auto; width: 100%; - max-width: min(960px, 100%); + max-width: none; min-width: 0; margin: 0; padding-inline: 0; box-sizing: border-box; + justify-content: center; +} + +.ai-trust-bar .ai-partner-marquee__tag { + position: absolute; + left: 0; + top: 50%; + z-index: 1; + transform: translateY(-50%); +} + +.ai-trust-bar .ai-partner-marquee__viewport, +.ai-trust-bar .ai-partner-marquee__viewport.is-static { + flex: 1 1 auto; + width: 100%; + /* 等宽预留左右(够盖住 ICP),避免 chip 压住标签/备案且不破坏居中 */ + padding-inline: 188px; + box-sizing: border-box; } .ai-trust-icp { - position: static; + position: absolute; + right: max(20px, env(safe-area-inset-right, 0px)); + top: 50%; + z-index: 1; display: inline-flex; align-items: center; justify-content: center; - margin-top: 6px; + flex-shrink: 0; + margin: 0; white-space: nowrap; opacity: 0.45; - transform: none; + transform: translateY(-50%); color: var(--ai-text-3); } @@ -4616,8 +4678,8 @@ body.command-home .ai-welcome-compose__lead { } .ai-welcome__stack { - margin-top: -28px; - gap: 14px; + margin-top: -24px; + gap: 20px; } .ai-welcome__deck { @@ -4625,13 +4687,13 @@ body.command-home .ai-welcome-compose__lead { padding-bottom: 0; } - .ai-welcome__command .ai-intent-grid { - padding-top: 0; + .ai-intent-ribbon { + height: 42px; } .ai-partner-marquee { margin-top: 0; - gap: 4px; + gap: 10px; } .ai-partner-chip { @@ -4673,68 +4735,31 @@ body.command-home .ai-welcome-compose__lead { opacity: 0.32; } - .ai-intent-grid { - grid-template-columns: repeat(2, minmax(0, 1fr)); - grid-template-rows: auto; + /* 窄屏:整条横滑,不折行 */ + .ai-intent-ribbon { + height: 42px; + overflow-x: auto; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; + scrollbar-width: none; + touch-action: pan-x; + mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); + -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); } - .ai-intent-door.is-primary, - .ai-intent-door:nth-child(2), - .ai-intent-door:nth-child(3), - .ai-intent-door:nth-child(4), - .ai-intent-door:nth-child(5) { - grid-column: auto; - grid-row: auto; - min-height: 0; - flex-direction: row; - align-items: flex-start; - gap: 12px; - padding: 16px 16px 16px 14px; + .ai-intent-ribbon::-webkit-scrollbar { + display: none; } - .ai-intent-door.is-primary .ai-intent-door__icon, - .ai-intent-door.is-primary .ai-intent-door__icon .ai-icon { - width: 52px; - height: 52px; - } - - .ai-intent-door.is-primary .ai-intent-door__icon .ai-icon--illus, - .ai-welcome__command .ai-intent-door .ai-icon--illus { - width: 52px; - height: 52px; - } - - .ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__icon, - .ai-welcome__command .ai-intent-door.is-primary .ai-icon--illus { - width: 56px; - height: 56px; - } - - .ai-welcome__command .ai-intent-door.is-primary { - padding: 16px 14px; - border-radius: var(--ai-dock-radius, 12px); - } - - .ai-welcome__command .ai-intent-door { - border-radius: var(--ai-dock-radius, 12px); + .ai-intent-ribbon__item { + flex: 0 0 auto; + width: auto; + min-width: 7.5rem; } .ai-welcome-plane img { width: min(280px, 42vw); } - - .ai-intent-grid--primary { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .ai-intent-grid.ai-intent-grid--growth, - .ai-welcome__command .ai-intent-grid--growth { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .ai-intent-grid--primary .ai-intent-door:last-child { - grid-column: 1 / -1; - } } @media (max-width: 780px) { @@ -4757,12 +4782,6 @@ body.command-home .ai-welcome-compose__lead { font-size: 0.8rem; } - .ai-intent-grid.ai-intent-grid--growth, - .ai-welcome__command .ai-intent-grid--growth { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 10px; - } } @media (max-width: 640px) { @@ -4858,83 +4877,28 @@ body.command-home .ai-welcome-compose__lead { line-height: 1.3; } - .ai-intent-grid--primary { - grid-template-columns: 1fr; - gap: 10px; + .ai-intent-ribbon { + height: 40px; } - .ai-intent-grid--primary .ai-intent-door:last-child { - grid-column: auto; + .ai-intent-ribbon__item { + min-width: 7rem; } - /* 权益:手机两列正方形 */ - .ai-intent-grid.ai-intent-grid--growth, - .ai-welcome__command .ai-intent-grid--growth { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 8px; - overflow: visible; - padding: 0; - mask-image: none; - -webkit-mask-image: none; - } - - .ai-welcome__command .ai-intent-grid--growth .ai-intent-door { - aspect-ratio: auto; - padding: 10px 12px; - gap: 6px; - } - - .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon, - .ai-welcome__command .ai-intent-grid--growth .ai-intent-door__icon .ai-icon--illus { - width: 32px; - height: 32px; - } - - .ai-welcome__command .ai-intent-door, - .ai-welcome__command .ai-intent-door.is-primary { - min-height: 52px; - padding: 9px 12px 9px 10px; - gap: 10px; - } - - .ai-intent-grid--primary { - gap: 8px; - } - - .ai-welcome__command .ai-intent-door__icon { - width: 44px; - height: 44px; - } - - .ai-welcome__command .ai-intent-door__icon .ai-icon--illus { - width: 44px; - height: 44px; - } - - .ai-welcome__command .ai-intent-door__title, - .ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__title { - font-size: 0.98rem; - } - - .ai-welcome__command .ai-intent-door__hint, - .ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__hint { - font-size: 0.85rem; - line-height: 1.35; - -webkit-line-clamp: 3; - line-clamp: 3; + .ai-intent-ribbon__label { + font-size: 0.74rem; } .ai-partner-marquee { min-width: 0; - gap: 6px; + gap: 8px; } .ai-partner-marquee__viewport, .ai-partner-marquee__viewport.is-static { flex: 1 1 auto; - width: 100%; - max-width: 100%; + width: auto; + max-width: none; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; @@ -4961,14 +4925,34 @@ body.command-home .ai-welcome-compose__lead { } .ai-trust-bar { - --ai-trust-bar-h: 76px; - gap: 8px 14px; + --ai-trust-bar-h: 44px; + flex-wrap: wrap; + gap: 6px 0; padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } + /* 窄屏:标签回文档流,备案另起一行,避免绝对定位压住 chip */ + .ai-trust-bar .ai-partner-marquee { + justify-content: flex-start; + } + + .ai-trust-bar .ai-partner-marquee__tag { + position: static; + transform: none; + } + + .ai-trust-bar .ai-partner-marquee__viewport, + .ai-trust-bar .ai-partner-marquee__viewport.is-static { + padding-inline: 0; + } + .ai-trust-icp { - margin-top: 6px; + position: static; + transform: none; + width: 100%; + margin: 0; + justify-content: center; font-size: 0.66rem; } @@ -5002,23 +4986,6 @@ body.command-home .ai-welcome-compose__lead { padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)); } - .ai-intent-section { - gap: 10px; - } - - .ai-intent-group__label { - margin-bottom: 6px; - font-size: 0.8rem; - letter-spacing: 0.04em; - color: var(--ai-text-2); - } - - .ai-welcome__command .ai-intent-door__hint, - .ai-welcome__command .ai-intent-door.is-primary .ai-intent-door__hint { - -webkit-line-clamp: 2; - line-clamp: 2; - } - .ai-welcome-title { white-space: normal; font-size: clamp(1.45rem, 6.2vw, 1.85rem);