// 群聊信息汇总组件样式 .group-chat-summary { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 16px; overflow: hidden; // 折叠头部 .summary-header { padding: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.2s; &:hover { background: rgba(102, 126, 234, 0.05); } &:active { background: rgba(102, 126, 234, 0.1); } .header-left { display: flex; align-items: center; gap: 12px; flex: 1; > .icon { width: 24px; height: 24px; fill: #667eea; flex-shrink: 0; } .header-info { display: flex; flex-direction: column; gap: 4px; .header-title { font-size: 16px; font-weight: 600; color: #222428; } .header-meta { font-size: 13px; color: #92949c; } } } .header-right { display: flex; align-items: center; gap: 8px; .unread-badge { background: linear-gradient(135deg, #eb445a 0%, #ef4444 100%); color: white; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 12px; min-width: 24px; text-align: center; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .icon.chevron { width: 20px; height: 20px; stroke: #92949c; transition: transform 0.3s; &.collapsed { transform: rotate(-90deg); } } } } // 展开内容 .summary-content { padding: 0 16px 16px; border-top: 1px solid #f4f5f8; animation: slideDown 0.3s ease-out; } @keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 1000px; } } // 群介绍部分 .intro-section { padding: 16px 0; border-bottom: 1px solid #f4f5f8; .intro-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; .icon { width: 18px; height: 18px; fill: #3dc2ff; } span { font-size: 14px; font-weight: 600; color: #222428; } } .intro-sent { display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(45, 211, 111, 0.1); border-radius: 8px; .success-icon { width: 20px; height: 20px; stroke: #2dd36f; } span { font-size: 14px; color: #2dd36f; font-weight: 500; } } .btn-intro { width: 100%; padding: 12px; background: linear-gradient(135deg, #3dc2ff 0%, #0ea5e9 100%); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.3s; .icon { width: 18px; height: 18px; fill: white; } &:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(61, 194, 255, 0.4); } &:active { transform: translateY(0); } } } // 筛选栏 .filter-bar { display: flex; gap: 8px; padding: 16px 0; overflow-x: auto; &::-webkit-scrollbar { display: none; } .filter-btn { flex-shrink: 0; padding: 8px 16px; background: #f4f5f8; border: none; border-radius: 20px; font-size: 13px; font-weight: 500; color: #666; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.3s; .icon { width: 16px; height: 16px; stroke: currentColor; fill: currentColor; } &:hover { background: #e8e9ed; } &.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); } &.alert { animation: shake 0.5s ease-in-out; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } } } } // 消息列表 .message-list { max-height: 400px; overflow-y: auto; border-radius: 8px; background: #fafafa; padding: 8px; &::-webkit-scrollbar { width: 6px; } &::-webkit-scrollbar-track { background: transparent; } &::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; &:hover { background: #9ca3af; } } .loading-state, .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: #92949c; .icon { width: 48px; height: 48px; margin-bottom: 12px; fill: #d1d5db; } .spinner { width: 40px; height: 40px; border: 4px solid #f4f5f8; border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; } @keyframes spin { to { transform: rotate(360deg); } } span { font-size: 14px; } } .message-item { background: white; border-radius: 8px; padding: 12px; margin-bottom: 8px; transition: all 0.3s; &:last-child { margin-bottom: 0; } &.customer { border-left: 3px solid #3dc2ff; } &.needs-reply { border-left: 3px solid #ffc409; background: rgba(255, 196, 9, 0.05); } &:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .message-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; .sender-info { display: flex; align-items: center; gap: 8px; .sender-name { font-size: 14px; font-weight: 600; color: #222428; } .customer-badge { background: rgba(61, 194, 255, 0.1); color: #3dc2ff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; } } .message-time { font-size: 12px; color: #92949c; } } .message-content { font-size: 14px; color: #4b5563; line-height: 1.6; word-break: break-word; } .reply-warning { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; background: rgba(255, 196, 9, 0.1); border-radius: 6px; .icon { width: 16px; height: 16px; flex-shrink: 0; &.warning { fill: #ffc409; } &.danger { fill: #eb445a; } } span { font-size: 12px; color: #d97706; font-weight: 500; } } } } // 快捷操作 .quick-actions { display: flex; gap: 8px; margin-top: 16px; .action-btn { flex: 1; padding: 10px 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.3s; .icon { width: 18px; height: 18px; fill: white; stroke: white; } &:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } &:active { transform: translateY(0); } &.secondary { background: #f4f5f8; color: #222428; .icon { fill: #222428; stroke: #222428; } &:hover { background: #e8e9ed; box-shadow: none; } } } } // 响应式 @media (max-width: 768px) { .summary-header { padding: 12px; .header-left { > .icon { width: 20px; height: 20px; } .header-info { .header-title { font-size: 14px; } .header-meta { font-size: 12px; } } } } .summary-content { padding: 0 12px 12px; } .message-list { max-height: 300px; } .quick-actions { flex-direction: column; .action-btn { width: 100%; } } } }