.general-tab-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.general-tab-container {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    border-top: 1px solid var(--border-color);
    background-color: transparent;
    padding: 0;
    padding-bottom: 6px;
    width: 100%;
}

.general-tab-container::-webkit-scrollbar {
    display: none;
}

.general-tab-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color, #e8e8e8);
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.general-tab-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.general-tab-scroll-btn:hover {
    background-color: #ffffff;
    color: var(--bg-primary-color, #1890ff);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.general-tab-scroll-btn.tab-scroll-left {
    left: 6px;
}

.general-tab-scroll-btn.tab-scroll-right {
    right: 6px;
}

.general-tab-body {
    flex: 1;
    flex-grow: 1;
    overflow: hidden;
}

.general-tab-item {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 18px 8px;
    background-color: #f7f9fa;
    border-right: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    border-bottom: 1px solid var(--border-color);
    color: #2c3e50;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.general-tab-item span {
    text-align: center;
}

.general-tab-item:last-child {
    border-right: none;
}

.general-tab-item:hover {
    color: var(--bg-primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

.general-tab-item-arrow {
    display: none;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-right: 1px solid var(--bg-primary-color);
    border-bottom: 1px solid var(--bg-primary-color);
    z-index: 2;
}

.general-tab-item.active .general-tab-item-arrow {
    display: block;
}

.general-tab-item.active {
    position: relative;
    background-color: #ffffff;
    color: var(--bg-primary-color) !important;
    border-top: 3px solid var(--bg-primary-color);
    border-bottom: 3px solid var(--bg-primary-color);
    font-weight: 700;
    z-index: 1;
}

.general-tab-item i,
.general-tab-item .anticon {
    color: #2c3e50;
}

.general-tab-item.active i,
.general-tab-item.active .anticon {
    color: var(--bg-primary-color) !important;
}

@media (max-width: 1024px) {
    .general-tab-item {
        padding: 10px 12px;
    }
}