/* 隐藏滚动条但仍然可以滚动 */
.layout-tab-scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}

.layout-tab-scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Tab基本样式 - 下划线样式 */
.layout-tab-item {
    transition: all 0.2s ease;
    cursor: pointer;
    /*min-width: 100px;*/
    /*max-width: 200px;*/
    white-space: nowrap;
    padding: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280; /* 默认灰色文字 */
    font-weight: normal;
    border-bottom: 3px solid transparent; /* 默认无下划线 */
}

/* 活动Tab样式 - 蓝色下划线 */
.layout-tab-item.layout-tab-item-active {
    color: #3b82f6 !important; /* 蓝色文字 */
    font-weight: 600;
    border-bottom-color: #3b82f6 !important; /* 蓝色下划线 */
    background-color: transparent !important; /* 无背景色 */
}

/* 非激活状态Tab悬停效果 - 灰色下划线 */
.layout-tab-item:not(.layout-tab-item-active):hover {
    color: #4b5563 !important; /* 深灰色文字 */
    border-bottom-color: #d1d5db !important; /* 灰色下划线 */
}

/* 关闭按钮样式 */
.layout-tab-item-close {
    transition: all 0.2s ease;
    opacity: 0.5;
}

.layout-tab-item:hover .layout-tab-item-close {
    opacity: 1;
}

.layout-tab-item-close:hover {
    /*background-color: rgba(209, 213, 219, 0.3);*/
    /*border-radius: 50%;*/
    /*padding: 2px;*/
}

/* 激活状态的关闭按钮悬停效果 */
.layout-tab-item.layout-tab-item-active .layout-tab-item-close:hover {
    /*background-color: rgba(59, 130, 246, 0.2);*/
    /*border-radius: 50%;*/
    /*padding: 2px;*/
}

/* 滚动箭头样式 */
.layout-tab-scroll-arrow {
    transition: all 0.2s ease;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.layout-tab-scroll-arrow:hover:not(.disabled) {
    background-color: #f3f4f6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.layout-tab-scroll-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.layout-tab-scroll-arrow.disabled:hover {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 标签栏容器阴影，提示可滚动 */
.layout-tab-scroll-container {
    position: relative;
}

.layout-tab-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.layout-tab-scroll-container.layout-tab-scrollable::after {
    opacity: 1;
}

/* 标签页内容区域 */
.layout-tab-content-item {
    transition: opacity 0.3s ease;
}

/* 标签页添加动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.layout-tab-item {
    animation: fadeIn 0.2s ease;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .layout-tab-item {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
    }
}