/**
 * 计算步骤现代化样式
 */

.steps-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--space-2);
}

.step-item {
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border-left: 4px solid var(--primary-500);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-500), var(--primary-400));
}

.step-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    background: var(--primary-50);
}

.step-title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-700);
    margin-bottom: var(--space-4);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.step-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.step-formula {
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    background: var(--surface-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    margin: var(--space-2) 0;
    color: var(--neutral-800);
    box-shadow: var(--shadow-xs);
    line-height: var(--line-height-relaxed);
    position: relative;
}

.step-formula:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

/* 计算步骤编号 */
.step-item:nth-child(1) .step-title::before { background: #ef4444; }
.step-item:nth-child(2) .step-title::before { background: #f97316; }
.step-item:nth-child(3) .step-title::before { background: #eab308; }
.step-item:nth-child(4) .step-title::before { background: #22c55e; }
.step-item:nth-child(5) .step-title::before { background: #3b82f6; }
.step-item:nth-child(6) .step-title::before { background: #8b5cf6; }

/* 滚动条样式 */
.steps-container::-webkit-scrollbar {
    width: 8px;
}

.steps-container::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
}

.steps-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-400), var(--primary-500));
    border-radius: var(--radius-lg);
    border: 2px solid var(--neutral-100);
}

.steps-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-500), var(--primary-600));
}

/* 响应式调整 */
@media (max-width: 768px) {
    .steps-container {
        max-height: 300px;
    }
    
    .step-item {
        padding: var(--space-4);
        margin-bottom: var(--space-3);
    }
    
    .step-formula {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
}