/* 工作流程步骤 */
.workflow-steps {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    padding: 0;
    overflow-x: auto;
    min-height: 50px;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
    gap: 0;
    position: relative;
    width: calc(100% - 10px);
    margin: 0 auto;
}

/* 步骤项样式 */
.step-item {
    flex: 1;
    min-width: 150px;
    height: 48px;
    padding: 0 10px 0 36px;
    position: relative;
    margin: 0 1px;
    background: rgba(10, 25, 40, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 电力风格步骤指示器 - 保持原始的圆点指示器 */
.step-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: rgba(10, 25, 40, 0.8);
    border: 2px solid var(--color-text-secondary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(10, 25, 40, 0.4), inset 0 0 3px rgba(0, 229, 255, 0.4);
    transition: all 0.3s;
}



/* 未完成/未激活步骤 */
.step-item:not(.active):not(.completed)::before {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: none;
    background-color: rgba(10, 25, 40, 0.5);
}

/* 步骤标题样式 */
.step-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

/* 步骤描述 */
.step-description {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: none;
    opacity: 0;
    transition: all 0.3s;
}

/* 激活状态的导航项样式 - 新的电流环流效果 */
.step-item.active {
    background: rgba(0, 230, 118, 0.03);
    border: 1px solid rgba(0, 230, 118, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

/* 激活状态下的指示灯 */
.step-item.active::before {
    border-color: var(--color-success);
    background-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 8px var(--color-success);
}

/* 添加电流边框效果 - 使用额外的伪元素 */
.step-item.active::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        var(--color-success) 50%, 
        rgba(0, 230, 118, 0.7) 80%,
        transparent);
    box-shadow: 0 0 8px var(--color-success), 0 0 12px rgba(0, 230, 118, 0.3);
    z-index: 3;
    opacity: 1;
    animation: circuitLineFlow 4s linear infinite;
    border-radius: 0;
}

/* 只在激活状态才显示描述文本 */
.step-item.active .step-description {
    display: block;
    opacity: 1;
    margin-top: 4px;
    color: var(--color-text);
}

/* 步骤完成样式 */
.step-item.completed::before {
    border-color: var(--color-success);
    background-color: rgba(0, 230, 118, 0.2);
}

.step-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* 状态指示器 */
.status-indicator {
    position: relative;
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.status-indicator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-success);
    z-index: 2;
    animation: breathePulse 3s infinite ease-in-out;
}

/* 消息组件 */
.message {
    position: relative;
}

.message::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.message.assistant::before {
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    cursor: e-resize;
    background: linear-gradient(90deg, transparent, rgba(10, 200, 185, 0.5));
}

.message.user::before {
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    cursor: w-resize;
    background: linear-gradient(270deg, transparent, rgba(0, 151, 245, 0.5));
}

.message:hover::before {
    opacity: 1;
}

.message.resizing::before {
    opacity: 1;
}

