All checks were successful
Build and Deploy Front / deploy (push) Successful in 6m37s
将站点/API 默认值收敛到配置,避免再次全局改域名;同步 H5/PC 支付充值与助手浮层交互调整。 Co-authored-by: Cursor <cursoragent@cursor.com>
162 lines
3.3 KiB
CSS
162 lines
3.3 KiB
CSS
/* Edi 公共会话流:ChatGPT 式居中阅读列 + FAB 同源头像 */
|
||
|
||
.edi-chat-dialog.ai-messages {
|
||
display: none;
|
||
flex-direction: column;
|
||
gap: 26px;
|
||
width: 100%;
|
||
max-width: var(--ai-thread-max, 48rem);
|
||
margin-inline: auto;
|
||
padding: 8px 0 20px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.edi-chat-dialog.ai-messages.is-active {
|
||
display: flex;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row {
|
||
display: flex;
|
||
gap: 14px;
|
||
align-items: flex-start;
|
||
max-width: 100%;
|
||
width: 100%;
|
||
animation: edi-chat-msg-in 0.3s ease;
|
||
}
|
||
|
||
@keyframes edi-chat-msg-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(8px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row--user {
|
||
justify-content: flex-end;
|
||
align-self: stretch;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row--assistant {
|
||
align-self: stretch;
|
||
width: 100%;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-edi.edi-fab-wrap,
|
||
.edi-chat-dialog .ai-msg-row--assistant .edi-fab-wrap {
|
||
position: relative;
|
||
display: block;
|
||
flex-shrink: 0;
|
||
width: 32px;
|
||
height: 32px;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-edi .edi-fab__img,
|
||
.edi-chat-dialog .ai-msg-row--assistant .edi-fab__img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
filter: drop-shadow(0 3px 8px rgba(255, 122, 24, 0.32));
|
||
pointer-events: none;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-edi .edi-fab__pulse,
|
||
.edi-chat-dialog .ai-msg-row--assistant .edi-fab__pulse {
|
||
position: absolute;
|
||
inset: 1px;
|
||
border-radius: 50%;
|
||
border: 1.5px solid #ff7a18;
|
||
opacity: 0;
|
||
animation: edi-pulse 2.4s ease-out infinite;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.edi-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));
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-body--typing {
|
||
flex-direction: row;
|
||
align-items: center;
|
||
gap: 5px;
|
||
min-height: 32px;
|
||
padding: 8px 0;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-bubble {
|
||
max-width: min(75%, 36rem);
|
||
padding: 12px 16px;
|
||
border-radius: 18px;
|
||
font-size: 0.95rem;
|
||
line-height: 1.6;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.edi-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);
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-text {
|
||
margin: 0;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row--assistant .ai-msg-text {
|
||
font-size: 1rem;
|
||
line-height: 1.75;
|
||
letter-spacing: -0.011em;
|
||
color: var(--ai-ink, var(--color-text-1));
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-followups {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 4px 6px;
|
||
margin-top: 6px;
|
||
padding-top: 0;
|
||
}
|
||
|
||
.edi-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: edi-chat-typing 1.2s ease-in-out infinite;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row--typing .ai-msg-body--typing span:nth-child(2) {
|
||
animation-delay: 0.15s;
|
||
}
|
||
|
||
.edi-chat-dialog .ai-msg-row--typing .ai-msg-body--typing span:nth-child(3) {
|
||
animation-delay: 0.3s;
|
||
}
|
||
|
||
@keyframes edi-chat-typing {
|
||
0%,
|
||
80%,
|
||
100% {
|
||
opacity: 0.35;
|
||
transform: scale(0.85);
|
||
}
|
||
40% {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
}
|
||
}
|