/* 容器样式 */ .container { position: relative; min-height: 100vh; background-color: #f5f5f5; overflow: hidden; /* 防止内容溢出 */ } /* 聊天容器 */ .chat-container { padding: 20rpx 30rpx; box-sizing: border-box; background-color: #f8f8f8; background-image: url('data:image/png;base64,'); background-size: 300rpx; background-blend-mode: overlay; background-opacity: 0.05; -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */ } .chat-list { padding-bottom: 30rpx; } /* 消息项 */ .message-item { display: flex; margin-bottom: 30rpx; position: relative; } .message-ai { justify-content: flex-start; } .message-user { justify-content: flex-end; } /* 头像 */ .avatar-container { width: 90rpx; height: 90rpx; flex-shrink: 0; } .avatar { width: 90rpx; height: 90rpx; border-radius: 50%; background-color: #e0e0e0; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1); object-fit: cover; } /* 消息内容 */ .message-content { max-width: 70%; margin: 0 20rpx; display: flex; flex-direction: column; } .user-content { align-items: flex-end; } .message-bubble { padding: 24rpx; border-radius: 24rpx; position: relative; margin-bottom: 10rpx; word-wrap: break-word; min-width: 80rpx; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08); transition: all 0.3s ease; max-width: 100%; } .ai-bubble { background-color: #e8f5e9; border-top-left-radius: 4rpx; } .user-bubble { background-color: #e3f2fd; border-top-right-radius: 4rpx; } .message-text { font-size: 28rpx; color: #333; line-height: 1.5; word-break: break-all; } .message-time { font-size: 22rpx; color: #999; } /* 输入区域 */ .input-container { position: fixed; bottom: 0; left: 0; right: 0; background-color: #fff; padding: 20rpx 30rpx; box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; z-index: 10; } .input-wrapper { display: flex; align-items: flex-end; } .message-input { flex: 1; min-height: 70rpx; max-height: 120rpx; border-radius: 35rpx; background-color: #f5f5f5; padding: 15rpx 30rpx; font-size: 28rpx; color: #333; border: 1rpx solid #e0e0e0; line-height: 1.4; } .send-button { margin-left: 16rpx; width: 76rpx; height: 76rpx; border-radius: 50%; background-color: transparent; background-image: none; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; position: relative; align-self: center; } .send-button.disabled { background-color: transparent; background-image: none; opacity: 1; } .button-hover { transform: scale(0.95); } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(0.95); } 100% { transform: scale(1); } } .send-button:active:not(.disabled) { animation: pulse 0.3s ease-in-out; } /* 删除或注释掉之前的样式 */ .send-icon { display: none; } .send-icon:before { display: none; } .send-icon-text { display: none; } /* 推荐问题区域 */ .suggested-questions { display: flex; white-space: nowrap; margin-bottom: 15rpx; padding: 5rpx 0; } .question-chip { display: inline-block; padding: 12rpx 20rpx; margin-right: 15rpx; background-color: #e8f5e9; color: #4CAF50; font-size: 24rpx; border-radius: 30rpx; border: 1rpx solid #a5d6a7; } /* AI正在输入的样式 */ .message-bubble.ai-bubble.typing { background-color: #f0f0f0; } .typing-indicator { display: flex; align-items: center; justify-content: center; height: 40rpx; padding: 0 20rpx; } .typing-dot { width: 10rpx; height: 10rpx; margin: 0 5rpx; background-color: #4CAF50; border-radius: 50%; opacity: 0.5; animation: typingAnimation 1.4s infinite both; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes typingAnimation { 0% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5rpx); } 100% { opacity: 0.3; transform: translateY(0); } } /* 关键词高亮 */ .message-text.highlight { color: #2E7D32; font-weight: 500; } /* 欢迎消息特殊样式 */ .welcome { background-color: #e3f2fd !important; border-left: none !important; border-radius: 24rpx !important; } /* 日期分割线样式 */ .date-separator { display: flex; align-items: center; justify-content: center; margin: 20rpx 0; } .date-separator text { background-color: rgba(0, 0, 0, 0.1); color: #666; font-size: 24rpx; padding: 4rpx 20rpx; border-radius: 20rpx; } /* 纸飞机图标 */ .plane-svg { display: none; } .send-icon-image { width: 76rpx; height: 76rpx; } .material-icon { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 48rpx; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; color: white; } /* 删除不需要的导航栏样式 */ .custom-navbar { display: none; } .navbar-bg, .navbar-content, .navbar-left, .navbar-title, .navbar-right, .back-icon, .arrow-left { display: none; }