.tab-component { display: flex; justify-content: center; flex-wrap: wrap; padding: 10px 0; transition: all 0.3s ease; z-index: 999; } .tab-component.sticky { position: sticky; top: 56px; left: 0; right: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .tab-component .tab-item { display: flex; flex-direction: column; align-items: center; padding: 15px; color: #666; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .tab-component .tab-item i { font-size: 27px; margin-bottom: 6px; background-size: contain; background-repeat: no-repeat; filter: grayscale(100%) opacity(0.5); } .tab-item:hover, .tab-item.active, .tab-item.active i { color: #0056b8; font-weight: bold; } .tab-item .active i, .tab-item :hover i { filter: none; }