-
+
{{ hint }}
@@ -17,12 +23,19 @@
@focus="onFocus"
@keydown="onKeydown"
>
-
@@ -30,14 +43,21 @@
diff --git a/src/components/NanaAssistant/ai-advisor.css b/src/components/NanaAssistant/ai-advisor.css
index 01b9364..76715b9 100644
--- a/src/components/NanaAssistant/ai-advisor.css
+++ b/src/components/NanaAssistant/ai-advisor.css
@@ -924,108 +924,9 @@
display: flex;
}
-.ai-msg-row {
- display: flex;
- gap: 10px;
- align-items: flex-end;
- max-width: 100%;
- animation: ai-msg-in 0.3s ease;
-}
+/* 会话气泡/阅读流由 NanaChatDialog + nana-chat.css 统一提供 */
-@keyframes ai-msg-in {
- from {
- opacity: 0;
- transform: translateY(8px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-.ai-msg-row--user {
- flex-direction: row-reverse;
- align-self: flex-end;
-}
-
-.ai-msg-row--assistant {
- align-self: flex-start;
-}
-
-.ai-msg-avatar {
- flex-shrink: 0;
- width: 32px;
- height: 32px;
- border-radius: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 0.9rem;
-}
-
-.ai-msg-row--assistant .ai-msg-avatar {
- width: 32px;
- height: 32px;
- padding: 0;
- background: transparent;
- overflow: visible;
-}
-
-.ai-msg-row--user .ai-msg-avatar {
- background: rgba(27, 42, 107, 0.08);
- color: var(--kc-primary, #1b2a6b);
- font-size: 0.75rem;
- font-weight: 700;
-}
-
-.ai-msg-bubble {
- max-width: min(680px, 88%);
- padding: 12px 16px;
- border-radius: 18px;
- font-size: 0.94rem;
- line-height: 1.6;
- white-space: pre-wrap;
- word-break: break-word;
-}
-
-.ai-msg-row--user .ai-msg-bubble {
- background: var(--kc-primary, #1b2a6b);
- color: #fff;
- border-bottom-right-radius: 6px;
-}
-
-.ai-msg-row--assistant .ai-msg-bubble {
- background: var(--app-card-bg);
- color: var(--color-text-1);
- border: 1px solid rgba(27, 42, 107, 0.08);
- box-shadow: 0 2px 8px rgba(27, 42, 107, 0.04);
- border-bottom-left-radius: 6px;
-}
-
-.ai-msg-row--typing .ai-msg-bubble {
- display: flex;
- gap: 5px;
- align-items: center;
- padding: 14px 18px;
-}
-
-.ai-msg-row--typing span {
- width: 7px;
- height: 7px;
- border-radius: 50%;
- background: var(--kc-secondary, #6a75b8);
- animation: ai-typing 1.2s ease-in-out infinite;
-}
-
-.ai-msg-row--typing span:nth-child(2) { animation-delay: 0.15s; }
-.ai-msg-row--typing span:nth-child(3) { animation-delay: 0.3s; }
-
-@keyframes ai-typing {
- 0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
- 40% { opacity: 1; transform: scale(1); }
-}
-
-/* Compact chips after chat starts */
+/* Compact chips(跟进条仍可在壳层单独使用) */
.ai-followup {
flex-shrink: 0;
display: none;
@@ -1151,6 +1052,68 @@
filter: none;
}
+/* 与官网欢迎提问卡一致:32px 圆钮,空态浅灰 / 有内容黑底上箭头 */
+.ai-advisor-shell--round-send .ai-composer-send {
+ width: 32px;
+ height: 32px;
+ border-radius: 999px;
+ background: #0d0d0d;
+ color: #fff;
+ box-shadow: none;
+ font-size: inherit;
+ opacity: 1;
+ transform: none;
+ filter: none;
+ transition: background 0.15s ease;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send__mark,
+.ai-advisor-shell--round-send .ai-composer-send svg {
+ display: block;
+ width: 18px;
+ height: 18px;
+ fill: none;
+ stroke: currentColor;
+ stroke-width: 2.25;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ color: inherit;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send.is-empty,
+.ai-advisor-shell--round-send .ai-composer-send.is-empty:hover {
+ background: #ececec;
+ color: #9a9a9a;
+ cursor: default;
+ transform: none;
+ filter: none;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send:hover:not(:disabled):not(.is-empty) {
+ background: #2f2f2f;
+ transform: none;
+ filter: none;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send:focus-visible {
+ outline: 2px solid #0d0d0d;
+ outline-offset: 2px;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send:disabled:not(.is-empty) {
+ background: #0d0d0d;
+ color: #fff;
+ opacity: 0.45;
+ cursor: not-allowed;
+ transform: none;
+ filter: none;
+}
+
+.ai-advisor-shell--round-send .ai-composer-send:not(:disabled):not(.is-empty):active {
+ background: #2f2f2f;
+ filter: none;
+}
+
.ai-composer-footer {
display: flex;
align-items: center;
diff --git a/src/components/NanaAssistant/nana-chat.css b/src/components/NanaAssistant/nana-chat.css
new file mode 100644
index 0000000..375d715
--- /dev/null
+++ b/src/components/NanaAssistant/nana-chat.css
@@ -0,0 +1,157 @@
+/* Nana 公共会话流:与 FAB 同源头像 + 阅读流排版 */
+
+.nana-chat-dialog.ai-messages {
+ display: none;
+ flex-direction: column;
+ gap: 18px;
+ width: 100%;
+ max-width: min(720px, 100%);
+ margin-inline: auto;
+ padding: 8px 0 16px;
+}
+
+.nana-chat-dialog.ai-messages.is-active {
+ display: flex;
+}
+
+.nana-chat-dialog .ai-msg-row {
+ display: flex;
+ gap: 12px;
+ align-items: flex-start;
+ max-width: 100%;
+ animation: nana-chat-msg-in 0.3s ease;
+}
+
+@keyframes nana-chat-msg-in {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.nana-chat-dialog .ai-msg-row--user {
+ justify-content: flex-end;
+ align-self: stretch;
+}
+
+.nana-chat-dialog .ai-msg-row--assistant {
+ align-self: stretch;
+ width: 100%;
+}
+
+.nana-chat-dialog .ai-msg-nana.nana-fab-wrap,
+.nana-chat-dialog .ai-msg-row--assistant .nana-fab-wrap {
+ position: relative;
+ display: block;
+ flex-shrink: 0;
+ width: 36px;
+ height: 36px;
+ margin-top: 2px;
+}
+
+.nana-chat-dialog .ai-msg-nana .nana-fab__img,
+.nana-chat-dialog .ai-msg-row--assistant .nana-fab__img {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ filter: drop-shadow(0 3px 8px rgba(45, 140, 140, 0.28));
+ pointer-events: none;
+}
+
+.nana-chat-dialog .ai-msg-nana .nana-fab__pulse,
+.nana-chat-dialog .ai-msg-row--assistant .nana-fab__pulse {
+ position: absolute;
+ inset: 1px;
+ border-radius: 50%;
+ border: 1.5px solid var(--app-primary-color, #2d8c8c);
+ opacity: 0;
+ animation: nana-pulse 2.4s ease-out infinite;
+ pointer-events: none;
+}
+
+.nana-chat-dialog .ai-msg-body {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ color: var(--ai-ink, var(--color-text-1));
+}
+
+.nana-chat-dialog .ai-msg-body--typing {
+ flex-direction: row;
+ align-items: center;
+ gap: 5px;
+ min-height: 36px;
+ padding: 8px 0;
+}
+
+.nana-chat-dialog .ai-msg-bubble {
+ max-width: min(520px, 86%);
+ padding: 11px 15px;
+ border-radius: 18px;
+ font-size: 0.94rem;
+ line-height: 1.55;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+.nana-chat-dialog .ai-msg-row--user .ai-msg-bubble {
+ background: var(--ai-action, var(--app-primary-color, #2d8c8c));
+ color: #fff;
+ border-bottom-right-radius: 6px;
+ box-shadow: 0 8px 20px color-mix(in srgb, var(--ai-action, var(--app-primary-color, #2d8c8c)) 18%, transparent);
+}
+
+.nana-chat-dialog .ai-msg-text {
+ margin: 0;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+.nana-chat-dialog .ai-msg-row--assistant .ai-msg-text {
+ font-size: 0.98rem;
+ line-height: 1.68;
+ letter-spacing: -0.01em;
+ color: var(--ai-ink, var(--color-text-1));
+}
+
+.nana-chat-dialog .ai-msg-followups {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ padding-top: 2px;
+}
+
+.nana-chat-dialog .ai-msg-row--typing .ai-msg-body--typing span {
+ width: 7px;
+ height: 7px;
+ border-radius: 50%;
+ background: var(--ai-muted, var(--color-text-3, #86909c));
+ animation: nana-chat-typing 1.2s ease-in-out infinite;
+}
+
+.nana-chat-dialog .ai-msg-row--typing .ai-msg-body--typing span:nth-child(2) {
+ animation-delay: 0.15s;
+}
+
+.nana-chat-dialog .ai-msg-row--typing .ai-msg-body--typing span:nth-child(3) {
+ animation-delay: 0.3s;
+}
+
+@keyframes nana-chat-typing {
+ 0%,
+ 80%,
+ 100% {
+ opacity: 0.35;
+ transform: scale(0.85);
+ }
+ 40% {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
diff --git a/src/components/top-nav/RightTopUser.vue b/src/components/top-nav/RightTopUser.vue
index 4a6f729..acc5b73 100644
--- a/src/components/top-nav/RightTopUser.vue
+++ b/src/components/top-nav/RightTopUser.vue
@@ -259,7 +259,7 @@ const props = withDefaults(
/** 侧栏收起等场景只显示头像 */
compact?: boolean
/** 下拉相对触发器位置;侧栏 Cursor 风格默认 tl(向上) */
- dropdownPosition?: 'br' | 'bl' | 'tr' | 'tl' | 'rt' | 'rb'
+ dropdownPosition?: 'br' | 'bl' | 'tr' | 'tl' | 'rt' | 'rb' | 'bottom' | 'top'
/** 客户侧栏:资产与账户菜单,收进用户下拉 */
accountMenus?: CustomerNavItem[]
/** 客户侧栏:语言收进用户菜单,不再单独占底栏 */
@@ -303,7 +303,7 @@ const dropdownTrigger = computed(() => {
});
const dropdownPosition = computed(
- () => props.dropdownPosition ?? (isSiderVariant.value ? 'tl' : 'br'),
+ () => props.dropdownPosition ?? (isSiderVariant.value ? 'tl' : 'bottom'),
);
const contentClass = computed(() =>
@@ -641,27 +641,29 @@ const onMenuClick = async (event: { key: string }) => {
}
.user-menu-item {
- display: flex;
+ display: inline-flex;
align-items: center;
- min-width: 148px;
- max-width: 220px;
+ width: max-content;
+ max-width: 100%;
box-sizing: border-box;
+ line-height: 1.35;
}
.user-menu-item__icon {
- width: 18px;
+ width: 16px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
- margin-right: 10px;
- font-size: 14px;
+ margin-right: 8px;
+ font-size: 13px;
color: var(--color-text-3);
}
.user-menu-item__label {
- flex: 1;
+ flex: 0 1 auto;
white-space: nowrap;
+ font-size: 13px;
font-weight: 500;
text-align: left;
}
@@ -679,12 +681,33 @@ const onMenuClick = async (event: { key: string }) => {