/* 新增醒目的选项卡按钮样式 */
.tab-container {
    margin-bottom: 20px;
    width: 100%;
}

.tab-buttons {
    display: flex;
    background-color: #f5f7fa;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 渐变标签风格 */
.gradient-tabs {
    background: linear-gradient(to right, #f3f4f6, #e5e7eb);
    border: 1px solid #e5e7eb;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    border-radius: 16px;
    border: none;
    background: none;
    color: #667085;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.tab-btn span {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: white;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tab-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #4338ca;
}

/* 切换时的动画效果 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .tab-btn i {
        font-size: 1.1em;
        margin-bottom: 5px;
    }
    
    .tab-btn span {
        font-size: 0.85em;
    }
    
    .tab-btn {
        padding: 12px 8px;
    }
}
