| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- // 群聊信息汇总组件样式
- .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%;
- }
- }
- }
- }
|