// 流程进度条组件样式
.process-progress-bar {
  width: 100%;
  padding: 24px 0;
  
  // 进度概览
  .progress-overview {
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    
    .progress-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      
      .progress-label {
        font-size: 16px;
        font-weight: 600;
        color: #495057;
      }
      
      .progress-percentage {
        font-size: 24px;
        font-weight: 700;
        color: #1976d2;
      }
    }
    
    .progress-bar-overview {
      height: 8px;
      background: #e9ecef;
      border-radius: 4px;
      overflow: hidden;
      
      .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #1976d2, #42a5f5);
        border-radius: 4px;
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
      }
    }
  }
  
  .progress-stages-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    
    .stage-wrapper {
      display: flex;
      align-items: center;
      flex: 1;
      
      &:last-child {
        flex: none;
      }
      
      .stage-node {
          display: flex;
          flex-direction: column;
          align-items: center;
          min-width: 140px;
          padding: 20px 16px;
          border-radius: 16px;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          position: relative;
          background: #ffffff;
          border: 2px solid transparent;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
          
          // 确保点击区域不小于44x44像素
          min-height: 44px;
          
          &.clickable {
            cursor: pointer;
            
            &:hover {
              transform: translateY(-3px);
              box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
              border-color: rgba(25, 118, 210, 0.3);
            }
            
            &:active {
              transform: translateY(-1px);
              transition-duration: 0.1s;
            }
            
            &:focus {
              outline: none;
              box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
            }
          }
        
        // 待开始状态
        &.pending {
          background: #f8f9fa;
          border-color: #e9ecef;
          
          .stage-icon {
            background: #e9ecef;
            color: #6c757d;
          }
          
          .stage-content {
            .stage-title {
              color: #6c757d;
            }
            
            .stage-description {
              color: #adb5bd;
            }
            
            .stage-status-indicator.status-pending {
              background: #f8f9fa;
              color: #6c757d;
              border-color: #e9ecef;
            }
          }
        }
        
        // 进行中状态
        &.in-progress {
          background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
          border-color: #ff9800;
          box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
          
          .stage-icon {
            background: linear-gradient(135deg, #ff9800, #f57c00);
            color: #ffffff;
            
            .progress-dot {
              animation: pulse 2s infinite;
            }
          }
          
          .stage-content {
            .stage-title {
              color: #e65100;
              font-weight: 600;
            }
            
            .stage-description {
              color: #f57c00;
            }
            
            .stage-status-indicator.status-progress {
              background: linear-gradient(135deg, #ff9800, #f57c00);
              color: #ffffff;
              border-color: #ff9800;
            }
          }
        }
        
        // 已完成状态
        &.completed {
          background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
          border-color: #4caf50;
          box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
          
          .stage-icon {
            background: linear-gradient(135deg, #4caf50, #388e3c);
            color: #ffffff;
          }
          
          .stage-content {
            .stage-title {
              color: #2e7d32;
              font-weight: 600;
            }
            
            .stage-description {
              color: #388e3c;
            }
            
            .stage-status-indicator.status-completed {
              background: linear-gradient(135deg, #4caf50, #388e3c);
              color: #ffffff;
              border-color: #4caf50;
            }
          }
        }
        
        .stage-icon {
          width: 48px;
          height: 48px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-bottom: 12px;
          transition: all 0.3s ease;
          
          svg {
            width: 20px;
            height: 20px;
          }
          
          .progress-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ffffff;
          }
          
          .pending-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #6c757d;
          }
        }
        
        .stage-content {
          text-align: center;
          width: 100%;
          
          .stage-title {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 6px;
            line-height: 1.3;
            transition: all 0.3s ease;
          }
          
          .stage-description {
            font-size: 12px;
            margin-bottom: 8px;
            line-height: 1.4;
            opacity: 0.8;
            transition: all 0.3s ease;
          }
          
          .stage-status-indicator {
            font-size: 11px;
            padding: 6px 12px;
            border-radius: 16px;
            border: 1px solid;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-block;
          }
        }
      }
      
      .stage-connector {
        flex: 1;
        height: 3px;
        margin: 0 12px;
        position: relative;
        display: flex;
        align-items: center;
        
        .connector-line {
          flex: 1;
          height: 3px;
          background: #e9ecef;
          border-radius: 2px;
          transition: all 0.6s ease;
        }
        
        .connector-arrow {
          margin-left: 8px;
          color: #e9ecef;
          transition: all 0.6s ease;
          
          svg {
            width: 12px;
            height: 12px;
          }
        }
        
        &.connector-completed {
          .connector-line {
            background: linear-gradient(90deg, #4caf50, #66bb6a);
            box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3);
          }
          
          .connector-arrow {
            color: #4caf50;
          }
        }
      }
    }
  }
}

// 脉冲动画
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .process-progress-bar {
    .progress-stages-container {
      .stage-wrapper {
        .stage-node {
          min-width: 100px;
          padding: 12px 8px;
          
          .stage-title {
            font-size: 13px;
          }
          
          .stage-icon {
            width: 36px;
            height: 36px;
          }
        }
      }
    }
  }
}

@media (max-width: 992px) {
  .process-progress-bar {
    .progress-stages-container {
      .stage-wrapper {
        .stage-node {
          min-width: 80px;
          padding: 10px 6px;
          
          .stage-title {
            font-size: 12px;
          }
          
          .stage-icon {
            width: 32px;
            height: 32px;
          }
          
          .stage-status-indicator {
            font-size: 10px;
            padding: 3px 6px;
          }
        }
        
        .stage-connector {
          margin: 0 4px;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .process-progress-bar {
    padding: 16px 0;
    
    .progress-stages-container {
      flex-direction: column;
      align-items: stretch;
      
      .stage-wrapper {
        flex-direction: column;
        margin-bottom: 16px;
        
        &:last-child {
          margin-bottom: 0;
        }
        
        .stage-node {
          width: 100%;
          min-width: auto;
          flex-direction: row;
          justify-content: flex-start;
          padding: 16px;
          text-align: left;
          
          .stage-icon {
            margin-right: 12px;
            margin-bottom: 0;
          }
          
          .stage-content {
            flex: 1;
            
            .stage-title {
              text-align: left;
              margin-bottom: 4px;
            }
          }
          
          .stage-status-indicator {
            margin-left: auto;
          }
        }
        
        .stage-connector {
          width: 2px;
          height: 20px;
          margin: 0 auto;
          
          .connector-line {
            width: 2px;
            height: 100%;
          }
        }
      }
    }
  }
}