.recruitment-performance-container {
  padding: 20px;
  background: #f2f2f7; // iOS系统背景色
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  // 修复缩放问题的关键样式
  overflow: auto;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
  
  // 确保在缩放时内容可以正常滚动
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    
    &:hover {
      background: rgba(0, 0, 0, 0.5);
    }
  }

  // iOS风格顶部导航
  .top-navigation {
    margin-bottom: 20px;
    
    .nav-buttons {
      display: flex;
      gap: 8px;
      justify-content: center;
      padding: 6px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(20px);
      border-radius: 14px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      
      .nav-button {
        min-width: 160px;
        height: 40px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 500;
        background: transparent;
        color: #007AFF;
        border: none;
        transition: all 0.15s ease;
        flex: 1;
        
        mat-icon {
          margin-right: 6px;
      
        
        &:hover {
          background: rgba(0, 122, 255, 0.08);
      
        
        &:active {
          transform: scale(0.97);
        }
        
        &.active {
          background: #007AFF;
          color: white;
          box-shadow: 0 1px 4px rgba(0, 122, 255, 0.25);
          font-weight: 600;
        }
      }
    }
  }

  // 招聘阶段时间线样式
  .recruitment-stages {
    .stages-timeline {
      margin: 24px 0;
      
      .timeline-item {
        position: relative;
        margin-bottom: 24px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        cursor: pointer;
        
        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        }
        
        &.completed {
          border-left: 4px solid #4CAF50;
          background: rgba(76, 175, 80, 0.02);
        }
        
        &.in-progress {
          border-left: 4px solid #FF9800;
          background: rgba(255, 152, 0, 0.02);
        }
        
        &.pending {
          border-left: 4px solid #e0e0e0;
          background: rgba(224, 224, 224, 0.02);
        }
        
        &.selected {
          border-color: #007AFF;
          background: rgba(0, 122, 255, 0.05);
          box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
        }
        
        .timeline-marker {
          position: absolute;
          left: -12px;
          top: 50%;
          transform: translateY(-50%);
          width: 24px;
          height: 24px;
          background: #fff;
          border: 2px solid #007AFF;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          
          mat-icon {
            font-size: 14px;
            width: 14px;
            height: 14px;
            color: #007AFF;
          }
        }
        
        .timeline-content {
          margin-left: 20px;
          
          .stage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            
            h5 {
              margin: 0;
              font-size: 16px;
              font-weight: 600;
              color: #333;
            }
            
            .stage-result {
              padding: 4px 12px;
              border-radius: 20px;
              font-size: 12px;
              font-weight: 500;
              
              &.通过 {
                background: rgba(76, 175, 80, 0.1);
                color: #4CAF50;
              }
              
              &.未通过 {
                background: rgba(244, 67, 54, 0.1);
                color: #f44336;
              }
              
              &.待定 {
                background: rgba(255, 152, 0, 0.1);
                color: #FF9800;
              }
            }
          }
          
          .stage-details {
            margin-bottom: 16px;
            
            p {
              margin: 4px 0;
              font-size: 14px;
              color: #666;
              
              strong {
                color: #333;
                font-weight: 500;
              }
            }
          }
          
          .stage-actions {
            display: flex;
            gap: 12px;
            align-items: center;
            
            button {
              height: 36px;
              min-width: 80px;
              border-radius: 8px;
              font-size: 14px;
              font-weight: 500;
              display: flex;
              align-items: center;
              justify-content: center;
              transition: all 0.2s ease;
              
              mat-icon {
                margin-right: 6px;
                font-size: 16px;
                width: 16px;
                height: 16px;
                line-height: 16px;
              }
              
              &[color="primary"] {
                background: #007AFF;
                color: white;
                border: none;
                
                &:hover {
                  background: #0056CC;
                  transform: translateY(-1px);
                  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
                }
              }
              
              &[color="accent"] {
                background: #667eea;
                color: white;
                border: none;
                
                &:hover {
                  background: #5a6fd8;
                  transform: translateY(-1px);
                  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
                }
              }
            }
          }
        }
        
        .timeline-connector {
          position: absolute;
          left: -1px;
          bottom: -24px;
          width: 2px;
          height: 24px;
          background: linear-gradient(to bottom, #007AFF, transparent);
        }
      }
      
      .empty-timeline {
        text-align: center;
        padding: 40px 20px;
        color: #666;
        
        mat-icon {
          font-size: 48px;
          width: 48px;
          height: 48px;
          color: #ccc;
          margin-bottom: 16px;
        }
        
        p {
          margin: 0;
          font-size: 16px;
        }
      }
    }
  }

  // iOS风格卡片样式
  mat-card {
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
    transition: all 0.2s ease;
    
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    &:active {
      transform: scale(0.995);
    }
    
    mat-card-header {
      padding: 20px 24px 16px;
      
      mat-card-title {
        display: flex;
        align-items: center;
        font-size: 22px;
        font-weight: 600;
        color: #1d1d1f;
        letter-spacing: -0.5px;
        
        mat-icon {
          margin-right: 12px;
          color: #007AFF;
          font-size: 24px;
        }
      }
    }
    
    mat-card-content {
      padding: 0 24px 24px;
    }
  }

  // 招聘四阶段进度展示
  .recruitment-phases {
    .phases-overview {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      margin-top: 16px;
      
    // Timeline样式
    .timeline-container {
      margin: 24px 0;
      
      .timeline {
        position: relative;
        padding: 20px 0;
        
        &::before {
          content: '';
          position: absolute;
          left: 50%;
          top: 0;
          bottom: 0;
          width: 2px;
          background: linear-gradient(to bottom, #007AFF, #667eea);
          transform: translateX(-50%);
        }
        
        .timeline-item {
          position: relative;
          margin-bottom: 40px;
          display: flex;
          align-items: center;
          
          &:nth-child(odd) {
            flex-direction: row;
            
            .timeline-content {
              margin-left: auto;
              margin-right: 60px;
              text-align: right;
            }
          }
          
          &:nth-child(even) {
            flex-direction: row-reverse;
            
            .timeline-content {
              margin-right: auto;
              margin-left: 60px;
              text-align: left;
            }
          }
          
          .timeline-marker {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 16px;
            height: 16px;
            background: #007AFF;
            border: 3px solid #fff;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
            z-index: 2;
            
            &.completed {
              background: #4CAF50;
              box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
            }
            
            &.in-progress {
              background: #FF9800;
              box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
              animation: pulse 2s infinite;
            }
            
            &.pending {
              background: #e0e0e0;
              box-shadow: 0 2px 8px rgba(224, 224, 224, 0.3);
            }
          }
          
          .timeline-content {
            flex: 1;
            max-width: 45%;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            
            .timeline-title {
              font-size: 16px;
              font-weight: 600;
              color: #333;
              margin-bottom: 8px;
            }
            
            .timeline-date {
              font-size: 12px;
              color: #666;
              margin-bottom: 12px;
            }
            
            .timeline-description {
              font-size: 14px;
              color: #555;
              line-height: 1.5;
            }
            
            .timeline-stats {
              margin-top: 12px;
              display: flex;
              gap: 16px;
              
              .stat {
                text-align: center;
                
                .stat-value {
                  display: block;
                  font-size: 18px;
                  font-weight: 600;
                  color: #007AFF;
                }
                
                .stat-label {
                  display: block;
                  font-size: 12px;
                  color: #666;
                }
              }
            }
          }
        }
      }
    }
    
    @keyframes pulse {
      0% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3), 0 0 0 0 rgba(255, 152, 0, 0.7);
      }
      70% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3), 0 0 0 10px rgba(255, 152, 0, 0);
      }
      100% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3), 0 0 0 0 rgba(255, 152, 0, 0);
      }
    }
    
    // 移动端Timeline样式
    @media (max-width: 768px) {
      .timeline-container {
        .timeline {
          &::before {
            left: 20px;
          }
          
          .timeline-item {
            &:nth-child(odd),
            &:nth-child(even) {
              flex-direction: row;
              
              .timeline-content {
                margin-left: 50px;
                margin-right: 0;
                text-align: left;
                max-width: calc(100% - 50px);
              }
            }
            
            .timeline-marker {
              left: 20px;
            }
          }
        }
      }
    }
      
      .phase-card {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 16px;
        padding: 24px;
        border: 2px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        
        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 4px;
          background: linear-gradient(90deg, #e0e0e0, #e0e0e0);
          transition: all 0.3s ease;
        }
        
        &.completed::before {
          background: linear-gradient(90deg, #4CAF50, #45a049);
        }
        
        &.in-progress::before {
          background: linear-gradient(90deg, #FF9800, #f57c00);
        }
        
        &.pending::before {
          background: linear-gradient(90deg, #e0e0e0, #e0e0e0);
        }
        
        &:hover {
          transform: translateY(-4px);
          box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
          border-color: rgba(102, 126, 234, 0.3);
        }
        
        .phase-header {
          display: flex;
          align-items: center;
          margin-bottom: 20px;
          
          mat-icon {
            font-size: 32px;
            width: 32px;
            height: 32px;
            margin-right: 16px;
          }
          
          h4 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
          }
        }
        
        .phase-content {
          margin-bottom: 20px;
          
          .phase-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 16px;
            
            .stat-item {
              text-align: center;
              
              .stat-label {
                display: block;
                font-size: 12px;
                color: #666;
                margin-bottom: 4px;
              }
              
              .stat-value {
                display: block;
                font-size: 20px;
                font-weight: 600;
                color: #333;
              }
            }
          }
          
          mat-progress-bar {
            margin-bottom: 12px;
            height: 8px;
            border-radius: 4px;
            
            ::ng-deep .mat-progress-bar-fill::after {
              border-radius: 4px;
            }
            
            ::ng-deep .mat-progress-bar-buffer {
              border-radius: 4px;
            }
          }
          
          .phase-description {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            margin: 0;
          }
        }
        
        .phase-status {
          display: flex;
          align-items: center;
          font-size: 14px;
          font-weight: 500;
          
          .status-icon {
            margin-right: 8px;
            font-size: 18px;
            
            &.completed {
              color: #4CAF50;
            }
            
            &.in-progress {
              color: #FF9800;
            }
            
            &.pending {
              color: #e0e0e0;
            }
          }
        }
      }
    }
}

// 响应式布局
@media (max-width: 768px) {
  .recruitment-performance-container {
    padding: 16px;
    
    .top-navigation {
      .nav-buttons {
        flex-direction: column;
        gap: 8px;
        
        .nav-button {
          min-width: auto;
          width: 100%;
          height: 44px;
        }
      }
    }
    
    mat-card {
      margin-bottom: 16px;
      
      mat-card-header {
        padding: 16px 20px 12px;
        
        mat-card-title {
          font-size: 20px;
          
          mat-icon {
            margin-right: 8px;
            font-size: 20px;
          }
        }
      }
      
      mat-card-content {
        padding: 0 20px 20px;
      }
    }
    
    // 招聘四阶段进度展示
    .recruitment-phases {
      grid-template-columns: 1fr;
      gap: 12px;
      
      .phase-card {
        padding: 16px;
        
        .phase-header {
          .phase-icon {
            width: 32px;
            height: 32px;
            font-size: 16px;
          }
          
          .phase-title {
            font-size: 16px;
          }
        }
        
        .phase-content {
          .phase-stats {
            flex-direction: column;
            gap: 8px;
            
            .stat-item {
              .stat-value {
                font-size: 20px;
              }
              
              .stat-label {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }

  // 绩效统计与分析模块
  .performance-analysis {
    .filter-section {
      margin-bottom: 24px;
      
      .filter-controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        align-items: end;
        margin-bottom: 16px;
        
        mat-form-field {
          min-width: 200px;
          
          .mat-mdc-form-field-wrapper {
            padding-bottom: 0;
          }
        }
      }
      
      .filter-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        
        button {
          height: 40px;
          min-width: 100px;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 10px;
          font-weight: 500;
          font-size: 15px;
          transition: all 0.15s ease;
          
          mat-icon {
            margin-right: 8px;
            font-size: 18px;
          }
          
          &[color="primary"] {
            background: #007AFF;
            border: none;
            color: white;
            
            &:hover {
              background: #0056CC;
              transform: translateY(-1px);
              box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
            }
            
            &:active {
              transform: scale(0.96);
            }
          }
          
          &[mat-stroked-button] {
            border: 1px solid #007AFF;
            color: #007AFF;
            background: transparent;
            
            &:hover {
              background: rgba(0, 122, 255, 0.08);
            }
            
            &:active {
              transform: scale(0.96);
            }
          }
        }
      }
    }
    
    .metrics-overview {
      margin-bottom: 24px;
      
      .metrics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        
        .metric-card {
          background: rgba(255, 255, 255, 0.9);
          border-radius: 16px;
          border: 1px solid rgba(0, 0, 0, 0.04);
          transition: all 0.2s ease;
          
          &:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
          }
          
          mat-card-content {
            padding: 24px;
            
            .metric-header {
              display: flex;
              align-items: center;
              margin-bottom: 16px;
              
              mat-icon {
                margin-right: 12px;
                color: #007AFF;
                font-size: 24px;
              }
              
              h3 {
                margin: 0;
                font-size: 16px;
                font-weight: 600;
                color: #333;
              }
            }
            
            .metric-value {
              font-size: 32px;
              font-weight: 700;
              color: #1d1d1f;
              margin-bottom: 12px;
              line-height: 1;
            }
            
            .metric-trend {
              display: flex;
              align-items: center;
              font-size: 14px;
              font-weight: 500;
              
              mat-icon {
                margin-right: 4px;
                font-size: 16px;
              }
              
              &.positive {
                color: #4CAF50;
              }
              
              &.negative {
                color: #f44336;
              }
              
              &.neutral {
                color: #666;
              }
            }
          }
        }
      }
    }
    
    .comparison-table {
      margin-bottom: 24px;
      
      .comparison-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
        
        button {
          padding: 8px 16px;
          border-radius: 8px;
          border: 1px solid #e0e0e0;
          background: transparent;
          color: #666;
          font-weight: 500;
          transition: all 0.15s ease;
          
          &.active {
            background: #007AFF;
            color: white;
            border-color: #007AFF;
          }
          
          &:hover:not(.active) {
            background: rgba(0, 122, 255, 0.08);
            border-color: #007AFF;
            color: #007AFF;
          }
        }
      }
      
      .comparison-content {
        .comparison-chart-section {
          margin-bottom: 32px;
          padding: 24px;
          background: #fff;
          border-radius: 16px;
          border: 1px solid #e0e0e0;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
          
          .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            
            h4 {
              margin: 0;
              font-size: 18px;
              font-weight: 600;
              color: #333;
            }
            
            .chart-controls {
              display: flex;
              gap: 8px;
              
              button {
                padding: 8px 16px;
                border-radius: 8px;
                border: 1px solid #e0e0e0;
                background: transparent;
                color: #666;
                font-weight: 500;
                transition: all 0.15s ease;
                display: flex;
                align-items: center;
                gap: 6px;
                
                mat-icon {
                  font-size: 16px;
                  width: 16px;
                  height: 16px;
                }
                
                &.active {
                  background: #007AFF;
                  color: white;
                  border-color: #007AFF;
                }
                
                &:hover:not(.active) {
                  background: rgba(0, 122, 255, 0.08);
                  border-color: #007AFF;
                  color: #007AFF;
                }
              }
            }
          }
          
          .comparison-chart-container {
            .comparison-chart {
              width: 100%;
              height: 400px;
              border-radius: 8px;
            }
          }
        }
        
        .department-comparison {
          display: grid;
          gap: 20px;
          
          .dept-section {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            
            h4 {
              margin: 0 0 16px 0;
              font-size: 18px;
              font-weight: 600;
              color: #333;
            }
            
            .metrics-comparison {
              display: grid;
              gap: 12px;
              
              .comparison-item {
                display: flex;
                align-items: center;
                gap: 16px;
                
                .metric-name {
                  min-width: 100px;
                  font-weight: 500;
                  color: #666;
                }
                
                .comparison-bar {
                  flex: 1;
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  
                  mat-progress-bar {
                    flex: 1;
                    height: 8px;
                    border-radius: 4px;
                  }
                  
                  .value {
                    min-width: 50px;
                    text-align: right;
                    font-weight: 600;
                    color: #333;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
    
    // 离职分析模块
    .turnover-analysis {
      .filter-section {
        display: flex;
        gap: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        
        mat-form-field {
          min-width: 200px;
        }
        
        .filter-actions {
          display: flex;
          gap: 12px;
          align-items: flex-end;
          
          button {
            height: 36px;
            border-radius: 10px;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.15s ease;
            
            &[color="primary"] {
              background: #007AFF;
              border: none;
              color: white;
              
              &:hover {
                background: #0056CC;
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
              }
              
              &:active {
                transform: scale(0.96);
              }
            }
            
            &[mat-stroked-button] {
              border: 1px solid #007AFF;
              color: #007AFF;
              background: transparent;
              
              &:hover {
                background: rgba(0, 122, 255, 0.08);
              }
              
              &:active {
                transform: scale(0.96);
              }
            }
          }
        }
      }
      
      .category-filters {
        margin-bottom: 24px;
        
        mat-chip-set {
          display: flex;
          gap: 8px;
          
          mat-chip {
            border-radius: 20px;
            font-weight: 500;
            
            &[selected] {
              background: linear-gradient(135deg, #667eea, #764ba2);
              color: white;
            }
          }
        }
      }
      
      .overall-turnover {
        margin-bottom: 32px;
        
        h4 {
          margin-bottom: 20px;
          color: #333;
          font-weight: 600;
          font-size: 18px;
        }
        
        .turnover-stats {
          display: grid;
          gap: 16px;
          
          .stat-item {
            padding: 20px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
            transition: all 0.3s ease;
            
            &:hover {
              box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
              transform: translateY(-2px);
            }
            
            .stat-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 12px;
              
              .reason-name {
                font-weight: 600;
                color: #333;
                font-size: 16px;
              }
              
              .reason-count {
                font-weight: 700;
                color: #667eea;
                font-size: 18px;
              }
            }
            
            .stat-bar {
              display: flex;
              align-items: center;
              gap: 12px;
              
              mat-progress-bar {
                flex: 1;
                height: 8px;
                border-radius: 4px;
              }
              
              .percentage {
                font-weight: 600;
                color: #666;
                min-width: 40px;
                text-align: right;
              }
            }
          }
        }
      }
      
      .category-analysis {
        margin-bottom: 32px;
        
        h4 {
          margin-bottom: 20px;
          color: #333;
          font-weight: 600;
          font-size: 18px;
        }
        
        .analysis-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
          gap: 24px;
          
          .analysis-section {
            padding: 24px;
            background: #fff;
            border-radius: 16px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            
            h5 {
              margin-bottom: 20px;
              color: #333;
              font-weight: 600;
              font-size: 16px;
              padding-bottom: 12px;
              border-bottom: 2px solid #f0f0f0;
            }
            
            .reasons-list {
              display: grid;
              gap: 16px;
              
              .reason-item {
                padding: 16px;
                background: #f8f9fa;
                border-radius: 12px;
                transition: all 0.3s ease;
                
                &:hover {
                  background: #f0f2f5;
                }
                
                .reason-label {
                  display: block;
                  font-weight: 600;
                  color: #333;
                  margin-bottom: 12px;
                }
                
                .reason-stats {
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  
                  mat-progress-bar {
                    flex: 1;
                    height: 6px;
                    border-radius: 3px;
                  }
                  
                  .stats-text {
                    font-weight: 500;
                    color: #666;
                    font-size: 14px;
                    min-width: 80px;
                    text-align: right;
                  }
                }
              }
            }
          }
        }
      }
      
      .charts-section {
        margin-bottom: 32px;
        
        .charts-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
          gap: 24px;
          
          .chart-container {
            padding: 24px;
            background: #fff;
            border-radius: 16px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            
            .pie-chart {
              width: 100%;
              height: 400px;
            }
          }
        }
      }
      
      .export-actions {
        display: flex;
        gap: 16px;
        justify-content: center;
        padding: 24px 0;
        
        button {
          padding: 12px 24px;
          border-radius: 8px;
          font-weight: 500;
          
          &[color="primary"] {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            
            &:hover {
              background: linear-gradient(135deg, #5a6fd8, #6a4190);
            }
          }
          
          mat-icon {
            margin-right: 8px;
          }
        }
      }
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 16px;
    
    .top-navigation {
      .nav-buttons {
        flex-direction: column;
        align-items: center;
        
        .nav-button {
          width: 100%;
          max-width: 300px;
        }
      }
    }
    
    .performance-analysis {
      .filter-section {
        .filter-controls {
          grid-template-columns: 1fr;
          gap: 12px;
          
          mat-form-field {
            min-width: auto;
            width: 100%;
          }
        }
        
        .filter-actions {
          justify-content: stretch;
          
          button {
            flex: 1;
            min-width: auto;
          }
        }
      }
      
      .metrics-overview {
        .metrics-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 12px;
          
          .metric-card {
            mat-card-content {
              padding: 16px;
              
              .metric-header {
                margin-bottom: 12px;
                
                mat-icon {
                  font-size: 20px;
                }
                
                h3 {
                  font-size: 14px;
                }
              }
              
              .metric-value {
                font-size: 24px;
                margin-bottom: 8px;
              }
              
              .metric-trend {
                font-size: 12px;
                
                mat-icon {
                  font-size: 14px;
                }
              }
            }
          }
        }
      }
      
      .comparison-table {
        .comparison-content {
          .department-comparison {
            .dept-section {
              padding: 16px;
              
              h4 {
                font-size: 16px;
                margin-bottom: 12px;
              }
              
              .metrics-comparison {
                gap: 8px;
                
                .comparison-item {
                  flex-direction: column;
                  align-items: flex-start;
                  gap: 8px;
                  
                  .metric-name {
                    min-width: auto;
                    font-size: 14px;
                  }
                  
                  .comparison-bar {
                    width: 100%;
                    
                    .value {
                      min-width: 40px;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    
    .turnover-analysis {
      .charts-section {
        .charts-grid {
          grid-template-columns: 1fr;
        }
      }
      
      .category-analysis {
        .analysis-grid {
          grid-template-columns: 1fr;
        }
      }
    }
    
    .filter-section {
      .filter-controls {
        grid-template-columns: 1fr;
        
        .filter-actions {
          justify-content: center;
        }
      }
    }
    
    .add-stage-form {
      .form-row {
        grid-template-columns: 1fr;
      }
    }
  }

  @media (max-width: 480px) {
    padding: 12px;
    
    mat-card {
      mat-card-header,
      mat-card-content {
        padding: 16px;
      }
    }
    
    .metric-card {
      mat-card-content {
        padding: 16px;
        
        .metric-value {
          font-size: 24px;
        }
      }
    }
    
    .export-actions {
      flex-direction: column;
      
      button {
        width: 100%;
      }
    }
  }
}

// 流程环节面板样式
.stage-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.stage-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  width: 85%;
  max-width: 550px;
  max-height: 75vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease-out;

  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(8px);

    h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    button {
      width: 32px;
      height: 32px;
      line-height: 32px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(0, 0, 0, 0.1);
      
      &:hover {
        background: rgba(255, 255, 255, 0.9);
      }
    }
  }

  .panel-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);

    .section {
      margin-bottom: 24px;
      padding: 16px;
      background: rgba(255, 255, 255, 0.4);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(5px);

      h4 {
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
      }

      .form-row {
        display: flex;
        gap: 16px;
        margin-bottom: 16px;

        mat-form-field {
          flex: 1;
          
          ::ng-deep {
            .mat-mdc-form-field-focus-overlay {
              background: rgba(255, 255, 255, 0.1);
            }
            
            .mat-mdc-text-field-wrapper {
              background: rgba(255, 255, 255, 0.8);
              border-radius: 8px;
              backdrop-filter: blur(5px);
            }
            
            .mat-mdc-form-field-outline {
              color: rgba(0, 0, 0, 0.2);
            }
            
            .mat-mdc-form-field-outline-thick {
              color: #667eea;
            }
            
            .mdc-text-field--focused .mat-mdc-form-field-outline-thick {
              color: #667eea;
            }
            
            input, textarea, .mat-mdc-select-value {
              color: #2c3e50;
              font-weight: 500;
            }
            
            .mat-mdc-form-field-label {
              color: #6c757d;
            }
          }
        }
      }

      .full-width {
        width: 100%;
      }

      .checklist {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-bottom: 16px;

        mat-checkbox {
          font-size: 14px;
        }
      }

      .evaluation-items {
        .eval-item {
          display: flex;
          align-items: center;
          gap: 16px;
          margin-bottom: 16px;
          padding: 12px;
          background: #f8f9fa;
          border-radius: 8px;

          label {
            min-width: 80px;
            font-weight: 500;
            color: #333;
          }

          mat-slider {
            flex: 1;
          }

          span {
            min-width: 40px;
            text-align: center;
            font-weight: 600;
            color: #007AFF;
          }
        }
      }
    }
  }

  .panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;

    button {
      min-width: 80px;
    }
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .stage-panel {
    width: 95%;
    max-height: 90vh;

    .panel-content {
      padding: 16px;

      .section {
        .form-row {
          flex-direction: column;
          gap: 12px;
        }

        .checklist {
          grid-template-columns: 1fr;
        }

        .evaluation-items {
          .eval-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;

            label {
              min-width: auto;
            }

            mat-slider {
              width: 100%;
            }
          }
        }
      }
    }

    .panel-footer {
      flex-direction: column;

      button {
        width: 100%;
      }
    }
  }
}

// 流程环节面板样式
.stage-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.stage-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  width: 85%;
  max-width: 550px;
  max-height: 75vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease-out;

  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(8px);

    h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    button {
      width: 32px;
      height: 32px;
      line-height: 32px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(0, 0, 0, 0.1);
      
      &:hover {
        background: rgba(255, 255, 255, 0.9);
      }
    }
  }

  .panel-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);

    .section {
      margin-bottom: 24px;
      padding: 16px;
      background: rgba(255, 255, 255, 0.4);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(5px);

      h4 {
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
      }

      .form-row {
        display: flex;
        gap: 16px;
        margin-bottom: 16px;

        mat-form-field {
          flex: 1;
          
          ::ng-deep {
            .mat-mdc-form-field-focus-overlay {
              background: rgba(255, 255, 255, 0.1);
            }
            
            .mat-mdc-text-field-wrapper {
              background: rgba(255, 255, 255, 0.8);
              border-radius: 8px;
              backdrop-filter: blur(5px);
            }
            
            .mat-mdc-form-field-outline {
              color: rgba(0, 0, 0, 0.2);
            }
            
            .mat-mdc-form-field-outline-thick {
              color: #667eea;
            }
            
            .mdc-text-field--focused .mat-mdc-form-field-outline-thick {
              color: #667eea;
            }
            
            input, textarea, .mat-mdc-select-value {
              color: #2c3e50;
              font-weight: 500;
            }
            
            .mat-mdc-form-field-label {
              color: #6c757d;
            }
          }
        }
      }

      .full-width {
        width: 100%;
      }

      .checklist {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-bottom: 16px;

        mat-checkbox {
          font-size: 14px;
        }
      }

      .evaluation-items {
        .eval-item {
          display: flex;
          align-items: center;
          gap: 16px;
          margin-bottom: 16px;
          padding: 12px;
          background: #f8f9fa;
          border-radius: 8px;

          label {
            min-width: 80px;
            font-weight: 500;
            color: #333;
          }

          mat-slider {
            flex: 1;
          }

          span {
            min-width: 40px;
            text-align: center;
            font-weight: 600;
            color: #007AFF;
          }
        }
      }
    }
  }

  .panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;

    button {
      min-width: 80px;
    }
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .stage-panel {
    width: 95%;
    max-height: 90vh;

    .panel-content {
      padding: 16px;

      .section {
        .form-row {
          flex-direction: column;
          gap: 12px;
        }

        .checklist {
          grid-template-columns: 1fr;
        }

        .evaluation-items {
          .eval-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;

            label {
              min-width: auto;
            }

            mat-slider {
              width: 100%;
            }
          }
        }
      }
    }

    .panel-footer {
      flex-direction: column;

      button {
        width: 100%;
      }
    }
  }
}
  }
}
