ai-c/pages/support/support.wxss
2026-02-02 18:21:32 +08:00

311 lines
4.7 KiB
Plaintext

/* pages/support/support.wxss */
/* 页面容器 */
.page-container {
min-height: 100vh;
background: #F5F2FD;
display: flex;
flex-direction: column;
position: relative;
}
/* 聊天区域包装器 */
.chat-area-wrapper {
position: fixed;
left: 0;
right: 0;
bottom: 120rpx;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* 状态栏区域 */
.status-bar-area {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(242, 237, 255, 0.6);
z-index: 101;
}
/* 顶部导航栏 */
.nav-header {
position: fixed;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
border-bottom: 2rpx solid #F3F4F6;
z-index: 100;
}
.nav-content {
display: flex;
align-items: center;
justify-content: space-between;
height: 98rpx;
padding: 0 16rpx;
}
/* 返回按钮 */
.nav-back {
display: flex;
align-items: center;
gap: 4rpx;
padding: 16rpx;
min-width: 160rpx;
}
.back-icon {
width: 56rpx;
height: 56rpx;
}
.back-text {
font-size: 34rpx;
font-weight: 700;
color: #914584;
}
/* 中间角色信息 */
.nav-center {
display: flex;
align-items: center;
gap: 16rpx;
}
.nav-avatar-wrap {
width: 64rpx;
height: 64rpx;
border-radius: 50%;
overflow: hidden;
border: 2rpx solid #E5E7EB;
display: flex;
align-items: center;
justify-content: center;
background: #F3F4F6;
}
.nav-avatar {
width: 80%;
height: 80%;
}
.nav-name {
font-size: 34rpx;
font-weight: 700;
color: #101828;
}
.online-dot {
width: 16rpx;
height: 16rpx;
background: #00C950;
border-radius: 50%;
}
.nav-right-placeholder {
min-width: 160rpx;
}
/* 聊天内容区域 */
.chat-scroll {
height: 100%;
padding: 0 32rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
box-sizing: border-box;
}
.chat-scroll::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
.encrypt-hint {
text-align: center;
padding: 32rpx 0 48rpx;
}
.encrypt-hint text {
font-size: 24rpx;
color: #99A1AF;
}
.chat-list {
display: flex;
flex-direction: column;
gap: 48rpx;
}
.chat-item {
display: flex;
gap: 24rpx;
align-items: flex-start;
}
.chat-item.me {
justify-content: flex-end;
}
.avatar-wrap {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
border: 2rpx solid rgba(255, 255, 255, 0.5);
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
background: #FFFFFF;
}
.chat-avatar {
width: 100%;
height: 100%;
}
.chat-item.other .chat-avatar {
width: 70%;
height: 70%;
}
.message-content {
max-width: 540rpx;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.message-content.me {
align-items: flex-end;
}
.chat-bubble {
padding: 24rpx 40rpx;
word-break: break-all;
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
}
.chat-bubble.other {
background: #FFFFFF;
border-radius: 12rpx 44rpx 44rpx 44rpx;
}
.chat-bubble.me {
background: #914584;
border-radius: 44rpx 12rpx 44rpx 44rpx;
}
.chat-text {
font-size: 34rpx;
line-height: 1.625;
}
.chat-bubble.other .chat-text {
color: #1E2939;
}
.chat-bubble.me .chat-text {
color: #FFFFFF;
}
.message-time {
font-size: 22rpx;
color: #99A1AF;
padding: 0 8rpx;
}
.message-actions {
display: flex;
align-items: center;
gap: 16rpx;
}
/* 正在输入动画 */
.chat-bubble.typing {
display: flex;
gap: 12rpx;
padding: 28rpx 40rpx;
}
.typing-dot {
width: 16rpx;
height: 16rpx;
background: #9CA3AF;
border-radius: 50%;
animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30% { transform: translateY(-12rpx); opacity: 1; }
}
.chat-bottom-space {
height: 40rpx;
}
/* 底部输入区域 */
.bottom-input-area {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #FFFFFF;
border-top: 2rpx solid #F3F4F6;
box-shadow: 0 -10rpx 40rpx rgba(0, 0, 0, 0.03);
z-index: 100;
padding-bottom: env(safe-area-inset-bottom);
}
.figma-input-container {
display: flex;
align-items: center;
gap: 16rpx;
padding: 24rpx 32rpx;
padding-bottom: 24rpx;
}
.figma-input-wrap {
flex: 1;
background: #F9FAFB;
border: 2rpx solid #F3F4F6;
border-radius: 32rpx;
padding: 0 32rpx;
height: 96rpx;
display: flex;
align-items: center;
}
.figma-text-input {
width: 100%;
height: 100%;
font-size: 34rpx;
color: #101828;
}
.figma-send-btn {
width: 88rpx;
height: 88rpx;
background: #914584;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.figma-btn-icon {
width: 44rpx;
height: 44rpx;
}