
/* 步骤时间轴容器 */
.steps-timeline-section 
{
    background: #f0f4ff;
    border-radius: 0 0 8px 8px;
    padding: 6px;
    /*margin: 0.1rem 0.6rem;*/
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-top: 10px;
}

/* 单行标题模块 */
.steps-compact-header 
{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.steps-compact-header::before 
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.steps-compact-header:hover 
{
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 左侧内容 */
.compact-left 
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.compact-badge 
{
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.compact-badge i 
{
    font-size: 14px;
    color: #FFD700;
}

.compact-title 
{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-main 
{
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.title-count 
{
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

/* 右侧内容 */
.compact-right 
{
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-progress 
{
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-progress-bar 
{
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill 
{
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text 
{
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 30px;
}

.compact-toggle 
{
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.compact-toggle i 
{
    font-size: 12px;
    transition: transform 0.3s ease;
}

.steps-compact-header.expanded .compact-toggle i 
{
    transform: rotate(180deg);
}

/* 步骤内容包装器 */
.steps-content-wrapper 
{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.steps-content-wrapper.show 
{
    max-height: 2000px;
}

/* 步骤时间轴容器 */
.steps-timeline-container 
{
    padding: 10px 0;
    position: relative;
}

/* 时间轴连接线 */
.steps-timeline-container::before 
{
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, #ddd 0%, #bbb 100%);
}

/* 步骤项 */
.step-item 
{
    position: relative;
    margin-bottom: 8px;
}

.step-item:last-child 
{
    margin-bottom: 0;
}

/* 步骤头部 */
.step-header 
{
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    margin-left: 25px;
}

.step-header:hover 
{
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 彩虹标签样式 */
.step-tag 
{
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-right: 8px;
    white-space: nowrap;
}

/* 红色 */
.step-header.red .step-tag 
{
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

/* 橙色 */
.step-header.orange .step-tag 
{
    background: linear-gradient(135deg, #ff9f43, #ff6348);
}

/* 黄色 */
.step-header.yellow .step-tag 
{
    background: linear-gradient(135deg, #ffd93d, #ffb142);
}

/* 绿色 */
.step-header.green .step-tag 
{
    background: linear-gradient(135deg, #6bcf7f, #4cd137);
}

/* 青色 */
.step-header.cyan .step-tag 
{
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

/* 蓝色 */
.step-header.blue .step-tag 
{
    background: linear-gradient(135deg, #667eea, #5f66e8);
}

/* 紫色 */
.step-header.purple .step-tag 
{
    background: linear-gradient(135deg, #a55eea, #8854d0);
}

/* 步骤标题 */
.step-title 
{
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* 步骤切换按钮 */
.step-toggle 
{
    margin-left: 8px;
    color: #999;
    transition: transform 0.3s ease;
}

.step-toggle i 
{
    font-size: 12px;
}

.step-item.expanded .step-toggle 
{
    transform: rotate(180deg);
}

/* 步骤内容 */
.step-content 
{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.step-item.expanded .step-content 
{
    max-height: 400px;
}

.step-content-inner 
{
    padding: 10px 10px 10px 40px;
}

/* 步骤描述 */
.step-description 
{
    flex: 1;
}

.step-description p 
{
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 13px;
}

/* 步骤列表 */
.step-list 
{
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.step-list li 
{
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: #555;
    font-size: 12px;
}

.step-list li i 
{
    color: #10b981;
    margin-right: 6px;
    font-size: 10px;
}

/* 有序列表 */
.step-ordered-list 
{
    padding-left: 15px;
    margin: 10px 0;
}

.step-ordered-list li 
{
    padding: 3px 0;
    color: #555;
    font-size: 12px;
}

/* 信息网格 */
.step-info-grid 
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.info-item 
{
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-item i 
{
    color: #667eea;
    margin-right: 6px;
    font-size: 12px;
}

.info-item span 
{
    color: #555;
    font-weight: 500;
    font-size: 12px;
}

/* 操作框 */
.step-action-box 
{
    margin-top: 10px;
}

.action-item 
{
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
}

.action-item:last-child 
{
    margin-bottom: 0;
}

.action-item i 
{
    color: #667eea;
    font-size: 14px;
    margin-right: 8px;
    margin-top: 1px;
}

.action-item strong 
{
    color: #333;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.action-item p 
{
    color: #666;
    font-size: 12px;
    margin: 0;
}

/* 步骤提示 */
.step-tip 
{
    display: flex;
    align-items: center;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
}

.step-tip i 
{
    color: #f59e0b;
    margin-right: 6px;
    font-size: 12px;
}

.step-tip span 
{
    color: #92400e;
    font-size: 12px;
}

/* 文本内容 */
.step-text-content 
{
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.step-text-content p 
{
    margin: 0;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) 
{
    .steps-compact-header 
    {
        padding: 10px 12px;
    }
    
    .compact-badge 
    {
        width: 28px;
        height: 28px;
    }
    
    .compact-badge i 
    {
        font-size: 12px;
    }
    
    .title-main 
    {
        font-size: 14px;
    }
    
    .title-count 
    {
        font-size: 10px;
    }
    
    .mini-progress-bar 
    {
        width: 50px;
    }
    
    .compact-toggle 
    {
        font-size: 11px;
    }
    
    .steps-timeline-container::before 
    {
        left: 12px;
    }
    
    .step-header 
    {
        padding: 6px 10px;
        margin-left: 20px;
    }
    
    .step-tag 
    {
        padding: 2px 6px;
        font-size: 10px;
        margin-right: 6px;
    }
    
    .step-title 
    {
        font-size: 12px;
    }
    
    .step-content-inner 
    {
        padding: 8px 8px 8px 35px;
    }
    
    .step-info-grid 
    {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) 
{
    .steps-compact-header 
    {
        padding: 8px 10px;
    }
    
    .compact-right 
    {
        gap: 8px;
    }
    
    .compact-progress 
    {
        display: none;
    }
    
    .step-header 
    {
        padding: 5px 8px;
        margin-left: 18px;
    }
    
    .step-content-inner 
    {
        padding: 6px 6px 6px 30px;
    }
    
    .step-description p 
    {
        font-size: 12px;
    }
}
