.compilation-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.input-file, .output-file {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.output-file {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    margin-top: 10px;
    margin-bottom: 0;
}

.arrow {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: bold;
    margin: 0 10px;
    position: absolute;
    top: 50px;
    right: -30px;
    z-index: 10;
}

.process-box {
    border: 3px solid #17a2b8;
    border-radius: 12px;
    padding: 25px 20px;
    background: white;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

.process-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.process-tool {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.stage-label {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.stage-name {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    margin-top: 10px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .compilation-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .arrow {
        transform: rotate(90deg);
        right: 50%;
        top: auto;
        bottom: -25px;
    }
    
    .stage:last-child .arrow {
        display: none;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage {
    animation: slideIn 0.6s ease forwards;
}

.stage:nth-child(1) { animation-delay: 0.1s; }
.stage:nth-child(2) { animation-delay: 0.2s; }
.stage:nth-child(3) { animation-delay: 0.3s; }
.stage:nth-child(4) { animation-delay: 0.4s; }