// 🆕 待办事项标签筛选样式 .tag-filter-bar { display: flex; gap: 8px; padding: 12px 16px; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%); border-bottom: 1px solid #e0e6ed; overflow-x: auto; align-items: center; // 隐藏滚动条 scrollbar-width: thin; scrollbar-color: #cbd5e0 #f1f5f9; &::-webkit-scrollbar { height: 4px; } &::-webkit-scrollbar-track { background: #f1f5f9; } &::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 2px; &:hover { background: #a0aec0; } } } .tag-button { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ffffff; border: 1.5px solid #dfe3e6; border-radius: 20px; font-size: 12px; font-weight: 500; color: #4a5568; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; flex-shrink: 0; .tag-icon { font-size: 14px; display: inline-block; } .tag-label { color: #4a5568; } .tag-count { background: #f0f4f8; color: #718096; padding: 2px 6px; border-radius: 10px; font-size: 11px; font-weight: 600; min-width: 22px; text-align: center; } // 悬停状态 &:hover { border-color: #cbd5e0; background: #f8fafc; transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); .tag-count { background: #e6f0ff; color: #2d5a8c; } } // 激活状态 &.active { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); border-color: #4f46e5; color: #ffffff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); .tag-label { color: #ffffff; font-weight: 600; } .tag-count { background: rgba(255, 255, 255, 0.25); color: #ffffff; font-weight: 700; } } // 各类型标签的颜色主题 &[data-tag-type='customer'] { &.active { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } } &[data-tag-type='phase'] { &.active { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); border-color: #f59e0b; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); } } &[data-tag-type='review'] { &.active { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); border-color: #8b5cf6; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); } } &[data-tag-type='delivery'] { &.active { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); border-color: #ec4899; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3); } } } // 空状态样式 .empty-state.filtered { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: #718096; svg { margin-bottom: 16px; opacity: 0.6; } p { margin: 0; font-size: 14px; &:first-of-type { font-weight: 500; color: #4a5568; margin-bottom: 4px; } &.hint { font-size: 12px; color: #a0aec0; } } } // 响应式设计 @media (max-width: 768px) { .tag-filter-bar { padding: 10px 12px; gap: 6px; } .tag-button { padding: 5px 10px; font-size: 11px; .tag-icon { font-size: 12px; } .tag-count { padding: 2px 4px; font-size: 10px; min-width: 20px; } } } @media (max-width: 480px) { .tag-filter-bar { padding: 8px 10px; gap: 4px; } .tag-button { padding: 4px 8px; font-size: 10px; .tag-icon { font-size: 11px; } } }