fix: 官网历史侧栏与询价卡对齐小迪,并同步 H5 助手浮层样式
All checks were successful
Build and Deploy Front / deploy (push) Successful in 4m4s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zzh 2026-11-16 08:56:01 +08:00
parent d9307c239d
commit 8d2786c8fe
6 changed files with 288 additions and 251 deletions

View File

@ -146,11 +146,30 @@
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
justify-content: flex-end; justify-content: center;
align-items: center;
} }
.ai-advisor-shell--float .ai-app-bar__actions--float-only { .ai-advisor-shell--float .ai-app-bar__actions--float-only {
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 0; margin-left: 0;
gap: 2px;
}
/* --chat 的上下不对称 padding 会盖掉 float 顶栏,单独拉回居中 */
.ai-advisor-shell--float.ai-advisor-shell--chat .ai-app-bar--float {
min-height: 0;
height: auto;
padding: 4px;
gap: 0;
}
.ai-advisor-shell--float .ai-float-icon-btn .arco-icon,
.ai-advisor-shell--float .ai-float-icon-btn svg {
display: block;
margin: 0;
} }
.ai-advisor-shell--float .ai-app-bar--float:active { .ai-advisor-shell--float .ai-app-bar--float:active {
@ -2399,23 +2418,27 @@
} }
.ai-composer-footer--chat { .ai-composer-footer--chat {
flex-direction: column; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: space-between;
gap: 6px; gap: 10px;
padding: 8px 4px 2px; padding: 8px 4px 2px;
} }
.ai-composer-footer--chat .ai-composer-hint { .ai-composer-footer--chat .ai-composer-hint {
order: 2; flex: 1;
text-align: center; min-width: 0;
order: 0;
text-align: left;
font-size: 0.68rem; font-size: 0.68rem;
opacity: 0.58; opacity: 0.58;
line-height: 1.35; line-height: 1.35;
} }
.ai-composer-footer--chat .ai-composer-human-btn { .ai-composer-footer--chat .ai-composer-human-btn {
order: 1; order: 0;
flex-shrink: 0;
margin-left: auto;
gap: 6px; gap: 6px;
height: 28px; height: 28px;
padding: 0 10px; padding: 0 10px;

View File

@ -28,7 +28,14 @@
</div> </div>
<div class="h5-assistant-shell"> <div class="h5-assistant-shell">
<AiAdvisorShell ref="shellRef" audience="customer" round-send /> <!-- 与 PC 客户浮窗同壳:mode=float 共用欢迎区 / 快捷卡 / 输入条样式 -->
<AiAdvisorShell
ref="shellRef"
audience="customer"
mode="float"
round-send
@close="onShellClose"
/>
</div> </div>
</div> </div>
</template> </template>
@ -85,11 +92,15 @@ function promptGuestLogin() {
function promptGuestRegister() { function promptGuestRegister() {
startH5WeChatRegister({ redirect: route.fullPath || '/h5/assistant' }); startH5WeChatRegister({ redirect: route.fullPath || '/h5/assistant' });
} }
/** 浮窗关闭钮 → 回订单 Tab(H5 有底栏,不销毁壳) */
function onShellClose() {
router.replace('/h5/orders');
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.h5-assistant-page { .h5-assistant-page {
--h5-assistant-pad-x: 0px;
height: calc(100dvh - var(--h5-dock-offset)); height: calc(100dvh - var(--h5-dock-offset));
min-height: 360px; min-height: 360px;
padding: 0; padding: 0;
@ -99,11 +110,11 @@ function promptGuestRegister() {
gap: 0; gap: 0;
background: background:
radial-gradient( radial-gradient(
ellipse 90% 42% at 50% -8%, ellipse 90% 50% at 0% 0%,
color-mix(in srgb, var(--app-primary-color) 14%, transparent) 0%, color-mix(in srgb, var(--app-primary-color) 8%, transparent) 0%,
transparent 70% transparent 55%
), ),
linear-gradient(180deg, #f7f8fa 0%, #f3f5f7 48%, #eef1f4 100%); var(--app-elevated-bg, #fff);
} }
.h5-assistant-guest { .h5-assistant-guest {
@ -206,129 +217,47 @@ function promptGuestRegister() {
position: relative; position: relative;
flex: 1; flex: 1;
min-height: 0; min-height: 0;
margin-top: 4px;
border-radius: 20px 20px 0 0;
overflow: hidden;
background: color-mix(in srgb, #fff 94%, transparent);
border: none;
box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.04);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
:deep(.ai-advisor-root),
:deep(.ai-advisor-shell), :deep(.ai-advisor-shell),
:deep(.ai-advisor-app), :deep(.ai-advisor-shell--float),
:deep(.ai-advisor-layout) { :deep(.ai-advisor-layout),
:deep(.ai-advisor-app) {
position: relative; position: relative;
width: 100%;
height: 100%; height: 100%;
min-height: 0; min-height: 0;
} }
:deep(.ai-app-bar__back), /* 全屏 Tab:去掉浮窗外圆角,铺满底栏上方 */
:deep(.ai-waybill-context__back) { :deep(.ai-advisor-shell--float) {
display: none !important;
}
:deep(.ai-advisor-shell--page .ai-advisor-layout) {
padding: 0;
max-width: none;
}
:deep(.ai-shell-bg) {
display: none;
}
:deep(.ai-advisor-app) {
border: none;
border-radius: 0; border-radius: 0;
box-shadow: none;
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
padding: 6px 0 4px;
} }
:deep(.ai-advisor-shell--page .ai-app-bar), :deep(.ai-advisor-shell--float .ai-shell-bg) {
:deep(.ai-advisor-shell--page .ai-app-main), border-radius: 0;
:deep(.ai-advisor-shell--page .ai-composer-wrap),
:deep(.ai-advisor-shell--page .ai-waybill-context) {
padding-left: 14px;
padding-right: 14px;
} }
:deep(.ai-advisor-shell--page .ai-composer-wrap) { /* H5 顶栏不拖动浮窗 */
padding-top: 6px; :deep(.ai-advisor-shell--float .ai-app-bar--float) {
padding-bottom: 6px; cursor: default;
touch-action: manipulation;
margin: 8px 12px 0;
}
:deep(.ai-advisor-shell--float .ai-app-bar--float:active) {
cursor: default;
}
/* 历史抽屉在窄屏全高 */
:deep(.ai-advisor-shell--float .ai-history-sidebar) {
width: min(300px, 86%);
} }
:deep(.ai-composer-input) { :deep(.ai-composer-input) {
overflow-y: hidden; overflow-y: hidden;
} }
:deep(.ai-history-sidebar),
:deep(.ai-history-sidebar--customer) {
position: absolute;
top: 0;
left: 0;
bottom: 0;
z-index: 20;
width: min(320px, 88%);
margin: 0;
border-radius: 0 20px 20px 0;
}
:deep(.ai-advisor-shell.ai-history-open .ai-history-backdrop) {
display: block !important;
position: absolute !important;
inset: 0 !important;
z-index: 19 !important;
border: none;
background: rgba(15, 23, 42, 0.22) !important;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
cursor: pointer;
}
:deep(.ai-waybill-context) {
margin: 0 0 8px;
padding-top: 10px;
padding-bottom: 10px;
border-radius: 14px;
border: 1px solid color-mix(in srgb, var(--app-primary-color) 14%, transparent);
background: color-mix(in srgb, var(--app-primary-color) 8%, #fff);
color: #1d2129;
}
:deep(.ai-waybill-context__actions) {
gap: 6px;
}
:deep(.ai-waybill-context__link),
:deep(.ai-waybill-context__btn),
:deep(.ai-waybill-context__clear) {
height: 28px;
border-radius: 14px;
font-size: 12px;
}
:deep(.ai-waybill-context__clear) {
color: #86909c;
}
:deep(.ai-waybill-context svg) {
color: var(--app-primary-color);
}
:deep(.ai-composer) {
border-radius: 22px;
}
:deep(.ai-msg-row--assistant .ai-msg-text) {
color: #1d2129;
}
:deep(.ai-composer-input) {
color: #1d2129;
}
} }
</style> </style>

View File

@ -68,7 +68,7 @@ const emit = defineEmits<{
} }
.h5-guest-auth__btn { .h5-guest-auth__btn {
flex: 1; flex: 1 1 0;
min-width: 0; min-width: 0;
height: 40px; height: 40px;
padding: 0 14px; padding: 0 14px;
@ -76,6 +76,7 @@ const emit = defineEmits<{
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
line-height: 1; line-height: 1;
white-space: nowrap;
cursor: pointer; cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease,
transform 0.12s ease; transform 0.12s ease;
@ -96,6 +97,11 @@ const emit = defineEmits<{
background: #07c160; background: #07c160;
box-shadow: 0 6px 14px rgba(7, 193, 96, 0.22); box-shadow: 0 6px 14px rgba(7, 193, 96, 0.22);
> span {
flex: 0 0 auto;
white-space: nowrap;
}
&:active { &:active {
background: #06ad56; background: #06ad56;
} }

View File

@ -186,11 +186,11 @@
</div> </div>
</div> </div>
<aside <aside
class="ai-history-sidebar" class="ai-history-sidebar ai-history-sidebar--chat"
:aria-hidden="historyOpen ? 'false' : 'true'" :aria-hidden="historyOpen ? 'false' : 'true'"
:aria-label="copy.historyTitle" :aria-label="copy.historyTitle"
> >
<div class="ai-history-sidebar__head"> <div class="ai-history-sidebar__toolbar">
<p class="ai-history-sidebar__title">{{ copy.historyTitle }}</p> <p class="ai-history-sidebar__title">{{ copy.historyTitle }}</p>
<button <button
type="button" type="button"
@ -201,7 +201,11 @@
<i class="si si-x-lg" aria-hidden="true"></i> <i class="si si-x-lg" aria-hidden="true"></i>
</button> </button>
</div> </div>
<button type="button" class="ai-new-chat-btn" @click="$emit('new-chat')"> <button
type="button"
class="ai-new-chat-btn ai-new-chat-btn--block"
@click="$emit('new-chat')"
>
<i class="si si-plus-lg" aria-hidden="true"></i> <i class="si si-plus-lg" aria-hidden="true"></i>
<span class="ai-new-chat-btn__label">{{ copy.newChat }}</span> <span class="ai-new-chat-btn__label">{{ copy.newChat }}</span>
</button> </button>
@ -216,6 +220,9 @@
role="listitem" role="listitem"
@click="$emit('switch-thread', thread.id)" @click="$emit('switch-thread', thread.id)"
> >
<span class="ai-history-item__icon" aria-hidden="true">
<i class="si si-chat"></i>
</span>
<span class="ai-history-item__body"> <span class="ai-history-item__body">
<span class="ai-history-item__title">{{ thread.title || copy.newChat }}</span> <span class="ai-history-item__title">{{ thread.title || copy.newChat }}</span>
<span class="ai-history-item__time">{{ formatThreadTime(thread.updatedAt) }}</span> <span class="ai-history-item__time">{{ formatThreadTime(thread.updatedAt) }}</span>

View File

@ -838,11 +838,11 @@ body.command-home #ai-advisor-shell {
.ai-msg-row--assistant .ai-msg-bubble { .ai-msg-row--assistant .ai-msg-bubble {
position: relative; position: relative;
isolation: isolate; isolation: isolate;
border: 1px solid var(--ai-paper-edge); border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 7%, transparent);
background: var(--ai-paper); background: #fff;
backdrop-filter: none; backdrop-filter: none;
-webkit-backdrop-filter: none; -webkit-backdrop-filter: none;
box-shadow: var(--ai-paper-shadow); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
} }
.ai-composer { .ai-composer {
@ -850,13 +850,15 @@ body.command-home #ai-advisor-shell {
isolation: isolate; isolation: isolate;
overflow: hidden; overflow: hidden;
min-height: 88px; min-height: 88px;
padding: 16px 16px 16px 24px; padding: 12px 14px 12px 18px;
border-radius: var(--ai-dock-radius); border-radius: 22px;
border: 1px solid var(--ai-paper-edge); border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 9%, transparent);
background: var(--ai-paper); background: #fff;
backdrop-filter: none; backdrop-filter: none;
-webkit-backdrop-filter: none; -webkit-backdrop-filter: none;
box-shadow: var(--ai-paper-shadow); box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.55) inset,
0 10px 28px rgba(15, 23, 42, 0.07);
transition: transition:
border-color 0.2s var(--ai-ease), border-color 0.2s var(--ai-ease),
background 0.2s var(--ai-ease), background 0.2s var(--ai-ease),
@ -868,9 +870,12 @@ body.command-home #ai-advisor-shell {
} }
.ai-composer:focus-within { .ai-composer:focus-within {
border-color: color-mix(in srgb, var(--ai-action) 22%, var(--ai-paper-edge)); border-color: color-mix(in srgb, var(--ai-brand, var(--ai-action)) 32%, transparent);
background: #fffefb; background: #fff;
box-shadow: var(--ai-paper-shadow-lift); box-shadow:
0 2px 4px rgba(15, 23, 42, 0.04),
0 12px 32px rgba(15, 23, 42, 0.09),
0 0 0 4px color-mix(in srgb, var(--ai-brand, var(--ai-action)) 12%, transparent);
} }
.ai-msg-row--assistant .ai-msg-bubble:not(:has(.ai-card))::before { .ai-msg-row--assistant .ai-msg-bubble:not(:has(.ai-card))::before {
@ -883,30 +888,14 @@ body.command-home #ai-advisor-shell {
z-index: 1; z-index: 1;
} }
.ai-card-opt {
position: relative;
isolation: isolate;
border: 1px solid var(--ai-border);
background: var(--ai-surface);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
transition:
border-color 0.2s var(--ai-ease),
background 0.2s var(--ai-ease),
color 0.2s var(--ai-ease);
}
.ai-card-opt::before { .ai-card-opt::before {
content: none; content: none;
} }
/* ??? / ???? ? ??????????????? */ /* 顶栏/追问芯片:浅玻璃;历史侧栏走 --chat 白底列表,不套此组 */
.ai-sidebar-toggle, .ai-sidebar-toggle,
.ai-new-chat-ghost, .ai-new-chat-ghost,
.ai-new-chat-btn, .ai-followup-chip {
.ai-followup-chip,
.ai-history-item {
position: relative; position: relative;
isolation: isolate; isolation: isolate;
border: none; border: none;
@ -922,9 +911,7 @@ body.command-home #ai-advisor-shell {
.ai-sidebar-toggle::before, .ai-sidebar-toggle::before,
.ai-new-chat-ghost::before, .ai-new-chat-ghost::before,
.ai-new-chat-btn::before, .ai-followup-chip::before {
.ai-followup-chip::before,
.ai-history-item::before {
content: none; content: none;
} }
@ -1026,19 +1013,17 @@ body.command-home #ai-advisor-shell {
left: 12px; left: 12px;
bottom: calc(var(--ai-trust-bar-h) + 10px); bottom: calc(var(--ai-trust-bar-h) + 10px);
z-index: 20; z-index: 20;
width: min(280px, calc(86vw - 24px)); width: min(300px, calc(86vw - 24px));
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 0;
padding: 14px 12px 16px; padding: 12px 12px 16px;
border-radius: var(--ai-dock-radius); border-radius: 0 20px 20px 0;
border: none; border: none;
background: color-mix(in srgb, var(--ai-paper) 92%, #e8eef2); background: #f7f8fa;
backdrop-filter: none; backdrop-filter: none;
-webkit-backdrop-filter: none; -webkit-backdrop-filter: none;
box-shadow: box-shadow: 16px 0 40px rgba(15, 23, 42, 0.12);
inset 0 3px 12px rgba(15, 23, 42, 0.08),
0 16px 40px rgba(15, 23, 42, 0.1);
transform: translateX(calc(-100% - 20px)); transform: translateX(calc(-100% - 20px));
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
@ -1052,31 +1037,42 @@ body.command-home #ai-advisor-shell {
z-index: 1; z-index: 1;
} }
/* 与 OMS 小迪 --chat 侧栏同构 */
.ai-history-sidebar--chat {
--ai-hist-ink: #1d2129;
--ai-hist-muted: #86909c;
--ai-hist-line: color-mix(in srgb, var(--color-text-1, #1d2129) 8%, transparent);
}
.ai-history-sidebar__toolbar,
.ai-history-sidebar__head { .ai-history-sidebar__head {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 8px; gap: 8px;
padding: 0 2px; flex-shrink: 0;
margin: 0 0 10px;
padding: 2px 2px 0;
} }
.ai-history-sidebar__close { .ai-history-sidebar__close {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 28px; width: 32px;
height: 28px; height: 32px;
border: none; border: none;
border-radius: 999px; border-radius: 10px;
background: transparent; background: transparent;
color: var(--ai-text-3); color: var(--ai-hist-muted, var(--ai-text-3));
cursor: pointer; cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
} }
.ai-history-sidebar__close:hover { .ai-history-sidebar__close:hover {
color: var(--ai-action); color: var(--ai-hist-ink, var(--ai-ink));
background: color-mix(in srgb, #fff 86%, #e6edf2); background: rgba(15, 23, 42, 0.06);
box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08); box-shadow: none;
} }
#ai-advisor-shell.ai-history-open .ai-history-sidebar { #ai-advisor-shell.ai-history-open .ai-history-sidebar {
@ -2050,12 +2046,12 @@ body.command-home #ai-advisor-shell {
.ai-history-sidebar__title { .ai-history-sidebar__title {
margin: 0; margin: 0;
padding: 0 2px; padding: 0;
font-size: 0.72rem; font-size: 1rem;
font-weight: 700; font-weight: 750;
letter-spacing: 0.08em; letter-spacing: -0.02em;
text-transform: uppercase; text-transform: none;
color: var(--ai-muted); color: var(--ai-hist-ink, var(--ai-ink));
} }
.ai-new-chat-btn { .ai-new-chat-btn {
@ -2064,32 +2060,45 @@ body.command-home #ai-advisor-shell {
justify-content: center; justify-content: center;
gap: 6px; gap: 6px;
width: 100%; width: 100%;
min-height: 38px; min-height: 42px;
margin-bottom: 12px; margin: 0 0 10px;
padding: 0 12px; padding: 0 12px;
border-radius: 14px; border: 1px solid var(--ai-hist-line, color-mix(in srgb, #1d2129 8%, transparent));
color: var(--ai-text-2); border-radius: 12px;
background: #fff;
color: var(--ai-hist-ink, var(--ai-ink));
font-size: 0.84rem; font-size: 0.84rem;
font-weight: 600; font-weight: 600;
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
cursor: pointer; cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.ai-new-chat-btn.ai-new-chat-btn--block {
width: auto;
align-self: stretch;
} }
.ai-new-chat-btn i { .ai-new-chat-btn i {
font-size: 0.95rem; font-size: 0.95rem;
line-height: 1; line-height: 1;
color: var(--ai-text-3); color: var(--app-primary-color, var(--ai-action));
transition: color 0.2s var(--ai-ease); transition: color 0.15s ease;
} }
.ai-new-chat-btn:hover { .ai-new-chat-btn:hover {
border: none; border-color: color-mix(in srgb, var(--app-primary-color, var(--ai-action)) 35%, transparent);
background: color-mix(in srgb, #fff 86%, #e6edf2); background: color-mix(in srgb, var(--app-primary-color, var(--ai-action)) 6%, #fff);
color: var(--ai-action); color: var(--app-primary-color, var(--ai-action));
box-shadow: inset 0 3px 8px rgba(15, 23, 42, 0.1); box-shadow: none;
} }
.ai-new-chat-btn:hover i { .ai-new-chat-btn:hover i {
color: var(--ai-action); color: var(--app-primary-color, var(--ai-action));
}
.ai-new-chat-btn:active {
transform: scale(0.985);
} }
.ai-history-list { .ai-history-list {
@ -2098,7 +2107,8 @@ body.command-home #ai-advisor-shell {
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 2px;
padding: 0;
scrollbar-width: none; scrollbar-width: none;
-ms-overflow-style: none; -ms-overflow-style: none;
} }
@ -2108,37 +2118,69 @@ body.command-home #ai-advisor-shell {
} }
.ai-history-empty { .ai-history-empty {
margin: 12px 6px 0; margin: 18px 4px 0;
font-size: 0.82rem; text-align: center;
color: var(--ai-muted); font-size: 0.84rem;
color: var(--ai-hist-muted, var(--ai-muted));
} }
.ai-history-item { .ai-history-item {
display: flex; display: flex;
align-items: flex-start; align-items: center;
gap: 10px; gap: 10px;
width: 100%; width: 100%;
padding: 10px 12px; padding: 10px 8px;
border-radius: 14px; border: none;
border-radius: 12px;
background: transparent;
box-shadow: none;
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
color: inherit; color: inherit;
transition: background 0.15s ease;
}
.ai-history-item:hover {
background: rgba(15, 23, 42, 0.045);
box-shadow: none;
} }
.ai-history-item:hover,
.ai-history-item.is-active { .ai-history-item.is-active {
border: none; background: color-mix(in srgb, var(--app-primary-color, var(--ai-action)) 10%, #fff);
background: color-mix(in srgb, #fff 86%, #e6edf2); box-shadow: none;
box-shadow: inset 0 3px 8px rgba(15, 23, 42, 0.1);
} }
.ai-history-item.is-active .ai-history-item__title { .ai-history-item.is-active .ai-history-item__title {
color: var(--ai-action); color: var(--ai-hist-ink, var(--ai-ink));
}
.ai-history-item__icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius: 9px;
background: rgba(15, 23, 42, 0.05);
color: var(--ai-hist-muted, var(--ai-muted));
}
.ai-history-item.is-active .ai-history-item__icon {
background: color-mix(in srgb, var(--app-primary-color, var(--ai-action)) 14%, transparent);
color: var(--app-primary-color, var(--ai-action));
}
.ai-history-item__icon .si {
font-size: 14px;
} }
.ai-history-item__body { .ai-history-item__body {
min-width: 0; min-width: 0;
flex: 1; flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
} }
.ai-history-item__title { .ai-history-item__title {
@ -2146,19 +2188,19 @@ body.command-home #ai-advisor-shell {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2; line-clamp: 2;
font-size: 0.84rem; font-size: 0.88rem;
font-weight: 600; font-weight: 600;
line-height: 1.35; line-height: 1.35;
color: var(--ai-ink); color: var(--ai-hist-ink, var(--ai-ink));
overflow: hidden; overflow: hidden;
white-space: normal; white-space: normal;
} }
.ai-history-item__time { .ai-history-item__time {
display: block; display: block;
margin-top: 3px; margin-top: 0;
font-size: 0.72rem; font-size: 0.72rem;
color: var(--ai-muted); color: var(--ai-hist-muted, var(--ai-muted));
} }
/* ?? Welcome / command doors ?? */ /* ?? Welcome / command doors ?? */
@ -3823,18 +3865,20 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
40% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(1); }
} }
/* Cards inside assistant replies ? ??? */ /* 会话内卡片:对齐小迪白底轻边,告别奶油纸+内凹 */
.ai-card { .ai-card {
position: relative; position: relative;
isolation: isolate; isolation: isolate;
overflow: hidden; overflow: hidden;
padding: 18px 18px 16px; padding: 16px 16px 14px;
border-radius: var(--ai-dock-radius-inner); border-radius: 16px;
border: 1px solid var(--ai-paper-edge); border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 8%, transparent);
background: var(--ai-paper); background: #fff;
backdrop-filter: none; backdrop-filter: none;
-webkit-backdrop-filter: none; -webkit-backdrop-filter: none;
box-shadow: var(--ai-paper-shadow); box-shadow:
0 1px 0 rgba(255, 255, 255, 0.7) inset,
0 8px 24px rgba(15, 23, 42, 0.06);
} }
.ai-card::before, .ai-card::before,
@ -3849,25 +3893,26 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
.ai-card__kicker { .ai-card__kicker {
margin: 0 0 6px; margin: 0 0 6px;
font-size: 0.68rem; font-size: 0.72rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.1em; letter-spacing: 0.04em;
text-transform: uppercase; text-transform: none;
color: var(--ai-gold); color: var(--ai-brand, var(--ai-action));
} }
.ai-card__title { .ai-card__title {
margin: 0 0 8px; margin: 0 0 8px;
font-size: 1.05rem; font-size: 1.02rem;
font-weight: 700; font-weight: 720;
letter-spacing: -0.01em;
color: var(--ai-ink); color: var(--ai-ink);
} }
.ai-card__metric { .ai-card__metric {
margin: 0 0 10px; margin: 0 0 10px;
font-size: 1.35rem; font-size: 1.28rem;
font-weight: 700; font-weight: 720;
color: var(--ai-gold); color: var(--ai-brand, var(--ai-action));
} }
.ai-card__body, .ai-card__body,
@ -3890,10 +3935,10 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
.ai-card__item { .ai-card__item {
padding: 10px 12px; padding: 10px 12px;
border-radius: var(--ai-radius-sm); border-radius: 12px;
text-align: left; text-align: left;
border: 1px solid var(--ai-paper-edge); border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 7%, transparent);
background: color-mix(in srgb, var(--ai-bg-soft) 70%, #fff); background: #f7f8fa;
box-shadow: none; box-shadow: none;
} }
@ -3938,7 +3983,7 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
margin-top: 12px; margin-top: 14px;
} }
.ai-card-opt { .ai-card-opt {
@ -3946,25 +3991,32 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
align-items: center; align-items: center;
min-height: 36px; min-height: 36px;
padding: 0 14px; padding: 0 14px;
border-radius: 14px; border-radius: 999px;
color: var(--ai-text); border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 10%, transparent);
background: #fff;
color: var(--ai-ink);
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 600; font-weight: 650;
text-decoration: none; text-decoration: none;
box-shadow: none;
cursor: pointer; cursor: pointer;
transition:
border-color 0.15s ease,
background 0.15s ease,
color 0.15s ease;
} }
.ai-card-opt:hover { .ai-card-opt:hover {
border-color: color-mix(in srgb, var(--ai-action) 35%, var(--ai-border)); border-color: color-mix(in srgb, var(--ai-brand, var(--ai-action)) 35%, transparent);
background: var(--ai-surface); background: color-mix(in srgb, var(--ai-brand, var(--ai-action)) 6%, #fff);
color: var(--ai-text); color: var(--ai-brand, var(--ai-action));
} }
.ai-card-opt.is-primary { .ai-card-opt.is-primary {
border: none; border-color: transparent;
background: var(--ai-action); background: var(--ai-action);
color: #fff; color: #fff;
box-shadow: 0 8px 18px color-mix(in srgb, var(--ai-action) 26%, transparent); box-shadow: 0 6px 16px color-mix(in srgb, var(--ai-action) 24%, transparent);
} }
.ai-card-opt.is-primary:hover { .ai-card-opt.is-primary:hover {
@ -3972,6 +4024,10 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
color: #fff; color: #fff;
} }
.ai-card--quote {
background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.ai-card--warn .ai-card__kicker { .ai-card--warn .ai-card__kicker {
color: var(--ai-gold); color: var(--ai-gold);
} }
@ -4235,33 +4291,45 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
margin-inline: auto; margin-inline: auto;
padding: 10px 0 0; padding: 10px 0 0;
border-top: none; border-top: none;
background-image: var(--ai-hairline); background-image: none;
background-repeat: no-repeat;
background-position: top center;
background-size: 100% 1px;
} }
.ai-composer-wrap.is-docked .ai-composer { .ai-composer-wrap.is-docked .ai-composer {
box-shadow: var(--ai-paper-shadow); min-height: 72px;
padding: 10px 12px 10px 16px;
border-radius: 22px;
border: 1px solid color-mix(in srgb, var(--ai-text, #121820) 9%, transparent);
background: #fff;
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.55) inset,
0 10px 28px rgba(15, 23, 42, 0.07);
}
.ai-composer-wrap.is-docked .ai-composer:focus-within {
border-color: color-mix(in srgb, var(--ai-brand, var(--ai-action)) 32%, transparent);
box-shadow:
0 2px 4px rgba(15, 23, 42, 0.04),
0 12px 32px rgba(15, 23, 42, 0.09),
0 0 0 4px color-mix(in srgb, var(--ai-brand, var(--ai-action)) 12%, transparent);
} }
.ai-composer-form { .ai-composer-form {
position: relative; position: relative;
z-index: 1; z-index: 1;
display: flex; display: flex;
align-items: center; align-items: flex-end;
gap: 10px; gap: 10px;
} }
.ai-composer-input { .ai-composer-input {
flex: 1; flex: 1;
min-height: 56px; min-height: 48px;
max-height: 160px; max-height: 160px;
padding: 14px 6px; padding: 13px 6px;
border: none; border: none;
background: transparent; background: transparent;
color: var(--ai-ink); color: var(--ai-ink);
font-size: 1.02rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
resize: none; resize: none;
} }
@ -4271,7 +4339,7 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
} }
.ai-composer-input::placeholder { .ai-composer-input::placeholder {
color: var(--ai-text-3); color: #c9cdd4;
} }
.ai-composer-send { .ai-composer-send {
@ -4280,15 +4348,15 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 32px; width: 40px;
height: 32px; height: 40px;
border: none; border: none;
border-radius: 999px; border-radius: 14px;
background: #0d0d0d; background: var(--ai-brand, #023e8a);
color: #fff; color: #fff;
box-shadow: none; box-shadow: none;
cursor: pointer; cursor: pointer;
transition: background 0.15s var(--ai-ease); transition: background 0.15s var(--ai-ease), filter 0.15s ease, transform 0.12s ease;
} }
.ai-composer-send__mark { .ai-composer-send__mark {
@ -4308,15 +4376,17 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
color: #9a9a9a; color: #9a9a9a;
cursor: default; cursor: default;
transform: none; transform: none;
filter: none;
} }
.ai-composer-send:hover:not(:disabled):not(.is-empty) { .ai-composer-send:hover:not(:disabled):not(.is-empty) {
background: #2f2f2f; background: var(--ai-brand-hover, #012a74);
filter: brightness(1.02);
transform: none; transform: none;
} }
.ai-composer-send:focus-visible { .ai-composer-send:focus-visible {
outline: 2px solid #0d0d0d; outline: 2px solid var(--ai-brand, #023e8a);
outline-offset: 2px; outline-offset: 2px;
} }
@ -4695,10 +4765,11 @@ body.command-home .ai-composer-slot--welcome .ai-composer {
border-radius: 14px; border-radius: 14px;
} }
.ai-composer { .ai-composer,
.ai-composer-wrap.is-docked .ai-composer {
min-height: 56px; min-height: 56px;
padding: 10px 10px 10px 16px; padding: 8px 10px 8px 14px;
border-radius: 14px; border-radius: 18px;
} }
.ai-composer-slot--welcome .ai-composer { .ai-composer-slot--welcome .ai-composer {
@ -4883,7 +4954,7 @@ body.command-home .ai-home-bottom {
} }
body.command-home .ai-history-sidebar { body.command-home .ai-history-sidebar {
background: color-mix(in srgb, var(--ai-paper) 72%, transparent); background: #f7f8fa;
} }
body.command-home .ai-history-backdrop { body.command-home .ai-history-backdrop {

View File

@ -16,3 +16,4 @@
.si-clock-history { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20d='M8%203.5a.5.5%200%200%200-1%200V9a.5.5%200%200%200%20.252.434l3.5%202a.5.5%200%200%200%20.496-.868L8%208.71z'/><path%20fill='%23000'%20d='M8%2016A8%208%200%201%200%208%200a8%208%200%200%200%200%2016m7-8A7%207%200%201%201%201%208a7%207%200%200%201%2014%200'/><path%20fill='%23000'%20d='M.5%201.5A.5.5%200%200%201%201%201h3.5a.5.5%200%200%201%200%201H1.707l1.64%201.64A8%208%200%200%200%20.022%208.59l.96-.29A7%207%200%200%201%202.64%204.35L1%202.707V4.5a.5.5%200%200%201-1%200z'/></svg>"); } .si-clock-history { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20d='M8%203.5a.5.5%200%200%200-1%200V9a.5.5%200%200%200%20.252.434l3.5%202a.5.5%200%200%200%20.496-.868L8%208.71z'/><path%20fill='%23000'%20d='M8%2016A8%208%200%201%200%208%200a8%208%200%200%200%200%2016m7-8A7%207%200%201%201%201%208a7%207%200%200%201%2014%200'/><path%20fill='%23000'%20d='M.5%201.5A.5.5%200%200%201%201%201h3.5a.5.5%200%200%201%200%201H1.707l1.64%201.64A8%208%200%200%200%20.022%208.59l.96-.29A7%207%200%200%201%202.64%204.35L1%202.707V4.5a.5.5%200%200%201-1%200z'/></svg>"); }
.si-plus-lg { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20fill-rule='evenodd'%20d='M8%202a.5.5%200%200%201%20.5.5v5h5a.5.5%200%200%201%200%201h-5v5a.5.5%200%200%201-1%200v-5h-5a.5.5%200%200%201%200-1h5v-5A.5.5%200%200%201%208%202'/></svg>"); } .si-plus-lg { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20fill-rule='evenodd'%20d='M8%202a.5.5%200%200%201%20.5.5v5h5a.5.5%200%200%201%200%201h-5v5a.5.5%200%200%201-1%200v-5h-5a.5.5%200%200%201%200-1h5v-5A.5.5%200%200%201%208%202'/></svg>"); }
.si-search { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20d='M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001q.044.06.098.115l3.85%203.85a1%201%200%200%200%201.415-1.414l-3.85-3.85a1%201%200%200%200-.115-.1zM12%206.5a5.5%205.5%200%201%201-11%200%205.5%205.5%200%200%201%2011%200'/></svg>"); } .si-search { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20d='M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001q.044.06.098.115l3.85%203.85a1%201%200%200%200%201.415-1.414l-3.85-3.85a1%201%200%200%200-.115-.1zM12%206.5a5.5%205.5%200%201%201-11%200%205.5%205.5%200%200%201%2011%200'/></svg>"); }
.si-chat { --si: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'><path%20fill='%23000'%20d='M14%201a1%201%200%200%201%201%201v8a1%201%200%200%201-1%201H4.414A2%202%200%200%200%203%2011.586l-2%202V2a1%201%200%200%201%201-1zM2%200a2%202%200%200%200-2%202v12.793a.5.5%200%200%200%20.854.353l2.853-2.853A1%201%200%200%201%204.414%2012H14a2%202%200%200%200%202-2V2a2%202%200%200%200-2-2z'/><path%20fill='%23000'%20d='M5%206a1%201%200%201%201-2%200%201%201%200%200%201%202%200m4%200a1%201%200%201%201-2%200%201%201%200%200%201%202%200m4%200a1%201%200%201%201-2%200%201%201%200%200%201%202%200'/></svg>"); }