.recruitment-performance-container {
  padding: 20px;
  background: #f2f2f7; // iOS系统背景色
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  // 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;
        }
      }
    }
  }

  // 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;
      
      .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 {
        flex-direction: column;
        gap: 12px;
        
        mat-form-field {
          min-width: auto;
          width: 100%;
        }
        
        .filter-actions {
          justify-content: stretch;
          
          button {
            flex: 1;
          }
        }
      }
      
      .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        
        .metric-card {
          padding: 16px;
          
          .metric-value {
            font-size: 24px;
          }
          
          .metric-label {
            font-size: 12px;
          }
        }
      }
    }
    
    // 离职分析模块
    .turnover-analysis {
      .filter-section {
        flex-direction: column;
        gap: 12px;
        
        mat-form-field {
          min-width: auto;
          width: 100%;
        }
        
        .filter-actions {
          justify-content: stretch;
          
          button {
            flex: 1;
          }
        }
      }
      
      .analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      
      .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        
        .chart-container {
          padding: 16px;
          
          .pie-chart {
            height: 300px;
          }
        }
      }
      
      .export-actions {
        flex-direction: column;
        gap: 12px;
        
        button {
          width: 100%;
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .recruitment-performance-container {
    padding: 12px;
    
    mat-card {
      border-radius: 12px;
      
      mat-card-header {
        padding: 12px 16px 8px;
        
        mat-card-title {
          font-size: 18px;
        }
      }
      
      mat-card-content {
        padding: 0 16px 16px;
      }
    }
    
    .metrics-grid {
      grid-template-columns: 1fr !important;
      gap: 8px;
    }
    
    .charts-grid {
      .pie-chart {
        height: 250px !important;
      }
    }
  }
}

// 离职分析模块
.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;
      }
    }
  }
}

// 招聘流程优化模块
  .recruitment-optimization {
    .ai-analysis-section {
      .upload-area {
        margin-bottom: 32px;
        
        .upload-zone {
          border: 2px dashed #667eea;
          border-radius: 16px;
          padding: 48px 24px;
          text-align: center;
          background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
          cursor: pointer;
          transition: all 0.3s ease;
          
          &:hover {
            border-color: #764ba2;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            transform: translateY(-2px);
          }
          
          .upload-icon {
            font-size: 48px;
            color: #667eea;
            margin-bottom: 16px;
          }
          
          p {
            margin: 8px 0;
            font-size: 16px;
            color: #333;
            
            &.upload-hint {
              font-size: 14px;
              color: #666;
            }
          }
        }
      }
      
      .analysis-results {
        .result-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 24px;
          padding-bottom: 16px;
          border-bottom: 1px solid #eee;
          
          h3 {
            margin: 0;
            color: #333;
            font-weight: 600;
          }
          
          .upload-time {
            color: #666;
            font-size: 14px;
          }
        }
        
        .processing-state {
          text-align: center;
          padding: 48px 24px;
          
          mat-spinner {
            margin-bottom: 16px;
          }
          
          p {
            color: #666;
            font-size: 16px;
          }
        }
        
        .completed-analysis {
          .recommendation-section {
            margin-bottom: 32px;
            text-align: center;
            
            .recommendation-badge {
              display: inline-block;
              padding: 12px 24px;
              border-radius: 20px;
              font-size: 16px;
              font-weight: 600;
              margin-bottom: 16px;
              
              &.推荐 {
                background: linear-gradient(135deg, #4CAF50, #45a049);
                color: white;
              }
              
              &.不推荐 {
                background: linear-gradient(135deg, #f44336, #d32f2f);
                color: white;
              }
              
              &.待定 {
                background: linear-gradient(135deg, #ff9800, #f57c00);
                color: white;
              }
            }
            
            .recommendation-reason {
              color: #666;
              font-size: 16px;
              line-height: 1.6;
            }
          }
          
          .skills-analysis {
            margin-bottom: 32px;
            
            h4 {
              margin-bottom: 20px;
              color: #333;
              font-weight: 600;
            }
            
            .skills-grid {
              display: grid;
              grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
              gap: 16px;
              margin-bottom: 20px;
              
              .skill-item {
                padding: 16px;
                border-radius: 12px;
                background: #f8f9fa;
                border: 2px solid transparent;
                transition: all 0.3s ease;
                
                &.matched {
                  border-color: #4CAF50;
                  background: rgba(76, 175, 80, 0.05);
                }
                
                .skill-name {
                  display: block;
                  font-weight: 600;
                  margin-bottom: 8px;
                  color: #333;
                }
                
                .skill-score {
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  
                  mat-progress-bar {
                    flex: 1;
                    height: 8px;
                    border-radius: 4px;
                  }
                  
                  .score-text {
                    font-weight: 600;
                    color: #667eea;
                    min-width: 40px;
                  }
                }
              }
            }
            
            .skills-summary {
              display: flex;
              justify-content: space-between;
              padding: 16px;
              background: rgba(102, 126, 234, 0.05);
              border-radius: 12px;
              
              span {
                font-weight: 600;
                color: #333;
              }
            }
          }
          
          .screening-info {
            h4 {
              margin-bottom: 20px;
              color: #333;
              font-weight: 600;
            }
            
            .info-grid {
              display: grid;
              gap: 16px;
              
              .info-item {
                display: flex;
                align-items: center;
                padding: 12px 0;
                border-bottom: 1px solid #eee;
                
                &:last-child {
                  border-bottom: none;
                }
                
                label {
                  font-weight: 600;
                  color: #333;
                  min-width: 100px;
                }
                
                span {
                  color: #666;
                }
                
                mat-chip-set {
                  mat-chip {
                    background: rgba(102, 126, 234, 0.1);
                    color: #667eea;
                    border: 1px solid rgba(102, 126, 234, 0.2);
                  }
                }
              }
            }
          }
        }
      }
      
      .analysis-history {
        margin-top: 32px;
        
        h4 {
          margin-bottom: 16px;
          color: #333;
          font-weight: 600;
        }
        
        .history-list {
          .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-radius: 12px;
            background: #f8f9fa;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            
            &:hover {
              background: #e9ecef;
              transform: translateX(4px);
            }
            
            &.selected {
              background: rgba(102, 126, 234, 0.1);
              border: 2px solid #667eea;
            }
            
            .item-info {
              .file-name {
                display: block;
                font-weight: 600;
                color: #333;
                margin-bottom: 4px;
              }
              
              .upload-time {
                font-size: 12px;
                color: #666;
              }
            }
            
            .item-status {
              .status-icon {
                &.processing {
                  color: #ff9800;
                }
                
                &.completed {
                  color: #4CAF50;
                }
                
                &.failed {
                  color: #f44336;
                }
              }
            }
          }
        }
      }
    }
    
    .recruitment-stages {
      .current-status {
        margin-bottom: 32px;
        padding: 24px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        border-radius: 16px;
        
        .status-info {
          h4 {
            margin-bottom: 16px;
            color: #333;
            font-weight: 600;
          }
          
          .progress-bar {
            height: 8px;
            border-radius: 4px;
            margin-bottom: 8px;
          }
          
          .progress-text {
            font-size: 14px;
            color: #666;
          }
        }
      }
      
      .stages-timeline {
        margin-bottom: 32px;
        
        .timeline-item {
          display: flex;
          margin-bottom: 24px;
          
          .timeline-marker {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #667eea;
            margin-right: 16px;
            margin-top: 4px;
            flex-shrink: 0;
          }
          
          .timeline-content {
            flex: 1;
            
            .stage-header {
              display: flex;
              align-items: center;
              gap: 12px;
              margin-bottom: 8px;
              
              h5 {
                margin: 0;
                color: #333;
                font-weight: 600;
              }
              
              .stage-result {
                padding: 4px 12px;
                border-radius: 12px;
                font-size: 12px;
                font-weight: 600;
                
                &.通过 {
                  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 {
              color: #666;
              font-size: 14px;
              line-height: 1.6;
              
              p {
                margin: 4px 0;
              }
            }
          }
        }
      }
      
      .add-stage-form {
        padding: 24px;
        background: #f8f9fa;
        border-radius: 16px;
        
        h4 {
          margin-bottom: 20px;
          color: #333;
          font-weight: 600;
        }
        
        .form-row {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 16px;
          margin-bottom: 16px;
        }
        
        .full-width {
          width: 100%;
        }
        
        .form-actions {
          display: flex;
          justify-content: flex-end;
          margin-top: 16px;
          
          button {
            border-radius: 20px;
            padding: 0 24px;
          }
        }
      }
      
      .probation-tracking {
        padding: 24px;
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(67, 160, 71, 0.05) 100%);
        border-radius: 16px;
        
        h4 {
          margin-bottom: 16px;
          color: #333;
          font-weight: 600;
        }
        
        .tracking-info {
          p {
            color: #666;
            margin-bottom: 16px;
          }
          
          .tracking-metrics {
            display: flex;
            gap: 24px;
            margin-bottom: 16px;
            
            .metric-item {
              .metric-label {
                font-weight: 600;
                color: #333;
              }
              
              .metric-value {
                color: #4CAF50;
                font-weight: 600;
              }
            }
          }
          
          button {
            border-radius: 20px;
          }
        }
      }
    }
  }

  // 绩效统计与分析模块
  .performance-analysis {
    .filter-section {
      .filter-controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        align-items: end;
        
        .filter-actions {
          display: flex;
          gap: 12px;
          
          button {
            border-radius: 20px;
            padding: 0 20px;
          }
        }
      }
    }
    
    .metrics-overview {
      margin-bottom: 32px;
      
      .metrics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        
        .metric-card {
          background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
          
          mat-card-content {
            padding: 24px;
            
            .metric-header {
              display: flex;
              align-items: center;
              margin-bottom: 16px;
              
              mat-icon {
                font-size: 24px;
                margin-right: 12px;
                color: #667eea;
              }
              
              h3 {
                margin: 0;
                font-size: 16px;
                font-weight: 600;
                color: #333;
              }
            }
            
            .metric-value {
              font-size: 32px;
              font-weight: 700;
              color: #333;
              margin-bottom: 12px;
            }
            
            .metric-trend {
              display: flex;
              align-items: center;
              font-size: 14px;
              font-weight: 600;
              
              mat-icon {
                font-size: 18px;
                margin-right: 4px;
              }
              
              &.positive {
                color: #4CAF50;
              }
              
              &.negative {
                color: #f44336;
              }
              
              &.neutral {
                color: #666;
              }
            }
          }
        }
      }
    }
    
    .comparison-table {
      .comparison-tabs {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
        
        button {
          border-radius: 20px;
          
          &.active {
            background: #667eea;
            color: white;
          }
        }
      }
      
      .comparison-content {
        .department-comparison {
          .dept-section {
            margin-bottom: 32px;
            
            h4 {
              margin-bottom: 20px;
              color: #333;
              font-weight: 600;
              padding-bottom: 8px;
              border-bottom: 2px solid #667eea;
            }
            
            .metrics-comparison {
              .comparison-item {
                display: flex;
                align-items: center;
                margin-bottom: 16px;
                
                .metric-name {
                  min-width: 120px;
                  font-weight: 600;
                  color: #333;
                }
                
                .comparison-bar {
                  flex: 1;
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  
                  mat-progress-bar {
                    flex: 1;
                    height: 8px;
                    border-radius: 4px;
                  }
                  
                  .value {
                    font-weight: 600;
                    color: #667eea;
                    min-width: 40px;
                  }
                }
              }
            }
          }
        }
      }
    }
    
    .turnover-analysis {
      .turnover-filters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        align-items: end;
        margin-bottom: 24px;
        
        .filter-actions {
          display: flex;
          gap: 12px;
          
          button {
            border-radius: 20px;
          }
        }
      }
      
      .category-filters {
        margin-bottom: 32px;
        
        mat-chip-set {
          mat-chip {
            border-radius: 16px;
            
            &[selected] {
              background: #667eea;
              color: white;
            }
          }
        }
      }
      
      .overall-turnover {
        margin-bottom: 32px;
        
        h4 {
          margin-bottom: 20px;
          color: #333;
          font-weight: 600;
        }
        
        .turnover-stats {
          .stat-item {
            margin-bottom: 16px;
            
            .stat-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 8px;
              
              .reason-name {
                font-weight: 600;
                color: #333;
              }
              
              .reason-count {
                color: #666;
                font-size: 14px;
              }
            }
            
            .stat-bar {
              display: flex;
              align-items: center;
              gap: 12px;
              
              mat-progress-bar {
                flex: 1;
                height: 8px;
                border-radius: 4px;
              }
              
              .percentage {
                font-weight: 600;
                color: #333;
                min-width: 40px;
              }
            }
          }
        }
      }
      
      .category-analysis {
        margin-bottom: 32px;
        
        h4 {
          margin-bottom: 20px;
          color: #333;
          font-weight: 600;
        }
        
        .analysis-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 24px;
          
          .analysis-section {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 16px;
            
            h5 {
              margin-bottom: 16px;
              color: #333;
              font-weight: 600;
            }
            
            .reasons-list {
              .reason-item {
                margin-bottom: 12px;
                
                .reason-label {
                  display: block;
                  font-weight: 600;
                  color: #333;
                  margin-bottom: 8px;
                }
                
                .reason-stats {
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  
                  mat-progress-bar {
                    flex: 1;
                    height: 6px;
                    border-radius: 3px;
                  }
                  
                  .stats-text {
                    font-size: 12px;
                    color: #666;
                    min-width: 80px;
                  }
                }
              }
            }
          }
        }
      }
      
      .charts-section {
        margin-bottom: 32px;
        
        .charts-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
          gap: 24px;
          
          .chart-container {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 20px;
            
            .pie-chart {
              width: 100%;
              height: 300px;
            }
          }
        }
      }
      
      .export-actions {
        display: flex;
        gap: 16px;
        justify-content: center;
        
        button {
          border-radius: 20px;
          padding: 0 24px;
        }
      }
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 16px;
    
    .top-navigation {
      .nav-buttons {
        flex-direction: column;
        align-items: center;
        
        .nav-button {
          width: 100%;
          max-width: 300px;
        }
      }
    }
    
    .metrics-overview {
      .metrics-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .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%;
      }
    }
  }
}