@use '../../../shared/styles/_ios-theme.scss' as *;
@import './order-creation-form.scss';
@import './project-review-styles.scss';
@import './project-review-experience-suggestions-styles.scss';

/* 头部导航样式 */
.header-nav {
  .header-nav-tabs {
    display: flex;
    gap: 8px;
    
    .nav-tab {
      padding: 8px 16px;
      border: none;
      border-radius: 8px;
      background: #f8f9fa;
      color: #666;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      
      &:hover {
        background: #e9ecef;
      }
      
      &.active {
        background: #007aff;
        color: white;
      }
    }
  }
}

/* ==================== 售后模块独立布局样式 ==================== */
.aftercare-modules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin: 32px 0;
  padding: 0 16px;
  
  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    margin: 24px 0;
    padding: 0 12px;
    gap: 16px;
  }
}

/* 新增：右侧 2x2 售后模块栅格 */
.aftercare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1200px) {
  .aftercare-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.aftercare-module {
  background: white;
  border: 1px solid $ios-border;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  
  /* 固定高度 + 内部滚动，实现每个模块为独立固定尺寸区域 */
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
  }
  
  .module-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 122, 255, 0.1);
    
    h2 {
      font-size: 20px;
      font-weight: 600;
      color: $ios-text-primary;
      margin: 0 0 8px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .module-description {
      color: $ios-text-secondary;
      font-size: 14px;
      line-height: 1.5;
      margin: 0;
    }
  }
  
  /* 将内容区设置为可滚动，保证头部固定显示 */
  > .settlement-automation,
  > .panoramic-synthesis,
  > .customer-review-enhanced,
  > .complaint-management-enhanced {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px; /* 避免滚动条遮挡内容 */

    /* 自定义滚动条样式 */
    &::-webkit-scrollbar {
      width: 8px;
    }
    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }
    &::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 4px;
    }

    /* Firefox 滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
  }
}

/* 尾款结算模块特定样式 */
.settlement-module {
  border-top: 4px solid #34c759;
  
  .settlement-automation {
    .automation-features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
      
      .feature-card {
        background: rgba(52, 199, 89, 0.05);
        border: 1px solid rgba(52, 199, 89, 0.2);
        border-radius: 8px;
        padding: 12px;
        text-align: center;
        transition: all 0.3s ease;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden;
        
        &.clickable {
          cursor: pointer;
          user-select: none;
          
          &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(52, 199, 89, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            pointer-events: none;
          }
          
          &:active::before {
            width: 200px;
            height: 200px;
          }
        }
        
        &:hover {
          background: rgba(52, 199, 89, 0.1);
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
        }
        
        &:active {
          transform: translateY(0) scale(0.98);
        }
        
        .feature-icon {
          font-size: 20px;
          margin-bottom: 6px;
        }
        
        .feature-content {
          h4 {
            font-size: 12px;
            font-weight: 600;
            color: #2c5530;
            margin: 0 0 3px 0;
            line-height: 1.2;
          }
          
          p {
            font-size: 10px;
            color: #666;
            margin: 0;
            line-height: 1.3;
          }

          .feature-status {
            margin-top: 8px;

            .status-badge {
              display: inline-block;
              padding: 3px 8px;
              border-radius: 12px;
              font-size: 11px;
              font-weight: 500;
              
              &.success {
                background: #e8f5e8;
                color: #2e7d32;
                border: 1px solid #c8e6c9;
              }
              
              &.pending {
                background: #fff3e0;
                color: #f57c00;
                border: 1px solid #ffcc02;
              }
              
              &.ready {
                background: #e3f2fd;
                color: #1976d2;
                border: 1px solid #bbdefb;
              }
              
              &.inactive {
                background: #f5f5f5;
                color: #757575;
                border: 1px solid #e0e0e0;
              }
            }
          }
        }
      }
    }
    
    .settlement-status {
      margin-bottom: 20px;
    }
    
    .automation-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      
      .automation-btn {
        background: linear-gradient(135deg, #34c759 0%, #2c9e4b 100%);
        border: none;
        position: relative;
        overflow: hidden;
        
        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          width: 0;
          height: 0;
          border-radius: 50%;
          background: rgba(255, 255, 255, 0.3);
          transform: translate(-50%, -50%);
          transition: width 0.6s, height 0.6s;
        }
        
        &:active::before {
          width: 300px;
          height: 300px;
        }
        
        &:hover:not(:disabled) {
          box-shadow: 0 4px 16px rgba(52, 199, 89, 0.4);
          transform: translateY(-2px);
        }
        
        &:active:not(:disabled) {
          transform: translateY(0);
        }
        
        .loading-spinner {
          width: 16px;
          height: 16px;
          border: 2px solid transparent;
          border-top: 2px solid white;
          border-radius: 50%;
          animation: spin 1s linear infinite;
          display: inline-block;
          margin-right: 8px;
        }
      }
      
      .secondary-btn {
        background: white;
        border: 1px solid #34c759;
        color: #34c759;
        position: relative;
        overflow: hidden;
        
        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          width: 0;
          height: 0;
          border-radius: 50%;
          background: rgba(52, 199, 89, 0.1);
          transform: translate(-50%, -50%);
          transition: width 0.6s, height 0.6s;
        }
        
        &:active::before {
          width: 300px;
          height: 300px;
        }
        
        &:hover {
          background: rgba(52, 199, 89, 0.1);
          transform: translateY(-2px);
        }
        
        &:active {
          transform: translateY(0);
        }
        
        .upload-icon {
          margin-right: 6px;
        }
      }
    }
  }
}

/* 全景图合成模块特定样式 */
.panoramic-module {
  border-top: 4px solid #ff9500;
  
  .panoramic-synthesis {
    .panoramic-features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 20px;
      
      .feature-card {
        background: rgba(255, 149, 0, 0.05);
        border: 1px solid rgba(255, 149, 0, 0.2);
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        
        &.clickable {
          cursor: pointer;
          user-select: none;
          
          &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 149, 0, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            pointer-events: none;
          }
          
          &:active::before {
            width: 250px;
            height: 250px;
          }
        }
        
        &:hover {
          background: rgba(255, 149, 0, 0.1);
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
        }
        
        &:active {
          transform: translateY(0) scale(0.98);
        }
        
        .feature-icon {
          font-size: 24px;
          margin-bottom: 8px;
        }
        
        .feature-content {
          h4 {
            font-size: 14px;
            font-weight: 600;
            color: #d35400;
            margin: 0 0 4px 0;
          }
          
          p {
            font-size: 12px;
            color: #666;
            margin: 0;
            line-height: 1.4;
          }
        }
      }
    }
    
    .panoramic-actions {
      display: flex;
      gap: 12px;
      margin-bottom: 20px;
      flex-wrap: wrap;
      
      .primary-btn {
        background: linear-gradient(135deg, #ff9500 0%, #f39c12 100%);
        border: none;
        
        &:hover {
          box-shadow: 0 4px 16px rgba(255, 149, 0, 0.4);
        }
      }
      
      .secondary-btn {
        background: white;
        border: 1px solid #ff9500;
        color: #ff9500;
        
        &:hover {
          background: rgba(255, 149, 0, 0.1);
        }
      }
    }
    
    .recent-syntheses {
      background: rgba(255, 149, 0, 0.02);
      border: 1px solid rgba(255, 149, 0, 0.1);
      border-radius: 12px;
      padding: 16px;
      
      h4 {
        font-size: 16px;
        font-weight: 600;
        color: #d35400;
        margin: 0 0 12px 0;
      }
      
      .synthesis-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      
      .empty-state {
        text-align: center;
        padding: 24px 16px;
        color: #8e8e93;
        
        .empty-icon {
          font-size: 32px;
          margin-bottom: 12px;
          opacity: 0.5;
        }
        
        .empty-title {
          font-size: 16px;
          font-weight: 600;
          margin-bottom: 8px;
          color: #666;
        }
        
        .empty-desc {
          font-size: 14px;
        }
      }
    }
  }
}

/* 客户评价模块特定样式 */
.review-module {
  border-top: 4px solid #007aff;
  
  .customer-review-enhanced {
    .review-dimensions {
      background: rgba(0, 122, 255, 0.02);
      border: 1px solid rgba(0, 122, 255, 0.1);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
      
      .dimension-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
        
        .dimension-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 16px;
          background: white;
          border-radius: 8px;
          border: 1px solid rgba(0, 122, 255, 0.1);
          
          .dimension-label {
            font-size: 14px;
            font-weight: 500;
            color: $ios-text-primary;
            margin-bottom: 12px;
          }
          
          .star-rating {
            display: flex;
            gap: 4px;
            
            .star {
              font-size: 18px;
              color: #ddd;
              transition: color 0.3s ease;
              
              &.filled {
                color: #ffc107;
              }
            }
          }
        }
      }
    }
    
    .review-content {
      margin-bottom: 20px;
      
      .review-form-section {
        background: white;
        border: 1px solid $ios-border;
        border-radius: 12px;
        padding: 20px;
        margin-top: 16px;
        
        .section-title {
          font-size: 16px;
          font-weight: 600;
          color: $ios-text-primary;
          margin: 0 0 16px 0;
        }
      }
    }
    
    .review-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      
      .primary-btn {
        background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
        border: none;
        
        &:hover {
          box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
        }
      }
      
      .secondary-btn {
        background: white;
        border: 1px solid #007aff;
        color: #007aff;
        
        &:hover {
          background: rgba(0, 122, 255, 0.1);
        }
      }
    }
  }
}

/* 投诉管理模块特定样式 */
.complaint-module {
  border-top: 4px solid #ff3b30;
  
  .complaint-management-enhanced {
    .complaint-features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 20px;
      
      .feature-card {
        background: rgba(255, 59, 48, 0.05);
        border: 1px solid rgba(255, 59, 48, 0.2);
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        transition: all 0.3s ease;
        
        &:hover {
          background: rgba(255, 59, 48, 0.1);
          transform: translateY(-2px);
        }
        
        .feature-icon {
          font-size: 24px;
          margin-bottom: 8px;
        }
        
        .feature-content {
          h4 {
            font-size: 14px;
            font-weight: 600;
            color: #c0392b;
            margin: 0 0 4px 0;
          }
          
          p {
            font-size: 12px;
            color: #666;
            margin: 0;
            line-height: 1.4;
          }
        }
      }
    }
    
    .complaint-content {
      margin-bottom: 20px;
    }
    
    .complaint-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      
      .primary-btn {
        background: linear-gradient(135deg, #ff3b30 0%, #c0392b 100%);
        border: none;
        
        &:hover {
          box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
        }
      }
      
      .secondary-btn {
        background: white;
        border: 1px solid #ff3b30;
        color: #ff3b30;
        
        &:hover {
          background: rgba(255, 59, 48, 0.1);
        }
      }
    }
  }
}

/* 通用按钮样式 */
.primary-btn, .secondary-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  
  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}

.primary-btn {
  color: white;
  border: none;
}

.secondary-btn {
  background: white;
  border: 1px solid currentColor;
}

.success-btn {
  background: linear-gradient(135deg, #34c759 0%, #2c9e4b 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  &:active::before {
    width: 300px;
    height: 300px;
  }
  
  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
  }
  
  &:active:not(:disabled) {
    transform: translateY(0);
  }
  
  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  span {
    position: relative;
    z-index: 1;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .aftercare-modules-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
    padding: 0 12px;
  }
  
  .aftercare-module {
    padding: 20px 16px;
    
    .module-header {
      margin-bottom: 16px;
      padding-bottom: 12px;
      
      h2 {
        font-size: 18px;
      }
      
      .module-description {
        font-size: 13px;
      }
    }
  }
  
  .settlement-automation .automation-features,
  .panoramic-synthesis .panoramic-features,
  .complaint-management-enhanced .complaint-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .customer-review-enhanced .review-dimensions .dimension-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .automation-actions,
  .panoramic-actions,
  .review-actions,
  .complaint-actions {
    flex-direction: column;
    gap: 8px;
    
    .primary-btn,
    .secondary-btn {
      width: 100%;
      justify-content: center;
    }
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 顶部导航栏四个环节圆圈样式 */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  
  .stage-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; // 放大横向布局间距

    .stage-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s ease;

      .stage-nav-circle {
        width: 40px; // 放大圆圈
        height: 40px; // 放大圆圈
        border-radius: 50%;
        background: #e5e5ea;
        border: 2px solid #d1d1d6;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 6px; // 放大下方间距以容纳标签
        transition: all 0.3s ease;

        .stage-nav-number {
          font-size: 14px; // 放大数字
          font-weight: 600;
          color: #8e8e93;
        }
      }

      .stage-nav-label {
        font-size: 12px; // 放大标签文字
        font-weight: 500;
        color: #3c3c43;
        text-align: center;
        white-space: nowrap;
      }

      // 已完成状态
      &.completed {
        .stage-nav-circle {
          background: #34c759;
          border-color: #34c759;

          .stage-nav-number {
            color: white;
          }
        }

        .stage-nav-label {
          color: #34c759;
          font-weight: 600;
        }
      }

      // 当前活跃状态
      &.active {
        .stage-nav-circle {
          background: #007aff;
          border-color: #007aff;
          box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);

          .stage-nav-number {
            color: white;
          }
        }

        .stage-nav-label {
          color: #007aff;
          font-weight: 600;
        }
      }

      &:hover {
        .stage-nav-circle {
          transform: scale(1.1);
        }
      }
    }

    .stage-nav-connector {
      width: 36px; // 放大连接线宽度
      height: 2px;
      background: #d1d1d6;
      margin: 0 6px; // 增加左右间距
      margin-bottom: 14px; // 适配更大的圆圈
      transition: all 0.3s ease;

      &.completed {
        background: #34c759;
      }
    }
  }
}

/* 横向圆形阶段进度条样式 */
.horizontal-stage-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

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

    .stage-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: #e5e5ea;
      border: 3px solid #d1d1d6;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      transition: all 0.3s ease;

      .stage-number {
        font-size: 18px;
        font-weight: 600;
        color: #8e8e93;
      }
    }

    .stage-label {
      font-size: 14px;
      font-weight: 500;
      color: #3c3c43;
      text-align: center;
      white-space: nowrap;
    }

    // 已完成状态
    &.completed {
      .stage-circle {
        background: #34c759;
        border-color: #34c759;

        .stage-number {
          color: white;
        }
      }

      .stage-label {
        color: #34c759;
        font-weight: 600;
      }
    }

    // 当前活跃状态
    &.active {
      .stage-circle {
        background: #007aff;
        border-color: #007aff;
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);

        .stage-number {
          color: white;
        }
      }

      .stage-label {
        color: #007aff;
        font-weight: 600;
      }
    }
  }

  .stage-connector {
    width: 80px;
    height: 3px;
    background: #d1d1d6;
    margin: 0 16px;
    margin-bottom: 32px;
    transition: all 0.3s ease;

    &.completed {
      background: #34c759;
    }
  }
}

/* 项目详情容器 */
.project-detail-container {
  padding: 2%; // 使用百分比单位
  background-color: #f5f7fa;
  color: #333;
  min-height: 100vh;
  box-sizing: border-box; // 确保内边距计算正确
  overflow-x: auto; // 允许水平滚动以防内容过宽
}



// 图片预览模态框样式
.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
  }
  
  .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid #e9ecef;
      
      h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 400px;
      }
      
      .close-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: #f8f9fa;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        
        &:hover {
          background: #e9ecef;
          color: #dc3545;
        }
      }
    }
    
    .modal-body {
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      max-height: 60vh;
      
      img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
      }
    }
    
    .modal-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border-top: 1px solid #e9ecef;
      background: #f8f9fa;
      
      .image-info {
        display: flex;
        gap: 12px;
        align-items: center;
        font-size: 14px;
        color: #666;
        
        .status-badge {
          padding: 4px 8px;
          border-radius: 4px;
          font-size: 12px;
          font-weight: 500;
          background: #e9ecef;
          color: #495057;
        }
      }
      
      .modal-actions {
        display: flex;
        gap: 12px;
        
        button {
          padding: 8px 16px;
          border: none;
          border-radius: 6px;
          font-size: 14px;
          font-weight: 500;
          cursor: pointer;
          transition: all 0.2s ease;
          
          &.secondary-btn {
            background: #6c757d;
            color: white;
            
            &:hover {
              background: #5a6268;
            }
          }
          
          &.danger-btn {
            background: #dc3545;
            color: white;
            
            &:hover {
              background: #c82333;
            }
          }
        }
      }
    }

    // 需求关键信息同步区域样式
    .requirement-sync-info {
      margin-top: 16px;
      padding: 16px;
      background: rgba(0, 122, 255, 0.02);
      border: 1px solid rgba(0, 122, 255, 0.1);
      border-radius: 8px;

      h4 {
        font-size: 14px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 16px 0;
        display: flex;
        align-items: center;
        gap: 6px;

        &::before {
          content: '';
          width: 3px;
          height: 14px;
          background: #007aff;
          border-radius: 2px;
        }
      }

      h5 {
        font-size: 13px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 12px 0;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      }

      .order-requirement-info {
        margin-bottom: 20px;
        padding: 12px;
        background: rgba(52, 199, 89, 0.02);
        border: 1px solid rgba(52, 199, 89, 0.1);
        border-radius: 6px;

        .preference-tags {
          margin-top: 12px;
          padding-top: 12px;
          border-top: 1px solid rgba(0, 0, 0, 0.06);

          .info-label {
            font-weight: 500;
            color: #666;
            margin-bottom: 6px;
            display: block;
          }

          .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;

            .tag {
              font-size: 11px;
              background: rgba(52, 199, 89, 0.1);
              color: #34c759;
              padding: 4px 8px;
              border-radius: 12px;
              font-weight: 500;
              border: 1px solid rgba(52, 199, 89, 0.2);
            }
          }
        }
      }

      .confirmed-requirement-info {
        padding: 12px;
        background: rgba(255, 149, 0, 0.02);
        border: 1px solid rgba(255, 149, 0, 0.1);
        border-radius: 6px;
      }

      .key-info-grid {
        display: grid;
        gap: 12px;

        .info-item {
          display: flex;
          align-items: center;
          gap: 8px;
          padding: 8px 12px;
          background: white;
          border-radius: 6px;
          border: 1px solid rgba(0, 0, 0, 0.06);
          font-size: 13px;

          .info-label {
            font-weight: 500;
            color: #666;
            min-width: 60px;
            flex-shrink: 0;
          }

          .info-value {
            color: #1d1d1f;
            font-weight: 500;
            flex: 1;
          }

          .color-preview {
            width: 16px;
            height: 16px;
            border-radius: 3px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
          }

          .color-temp {
            font-size: 11px;
            color: #8e8e93;
            background: rgba(142, 142, 147, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
          }

          .material-weights {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;

            .weight-item {
              font-size: 11px;
              background: rgba(52, 199, 89, 0.1);
              color: #34c759;
              padding: 2px 6px;
              border-radius: 4px;
              font-weight: 500;
            }
          }
        }
      }

      .sync-placeholder {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        background: rgba(142, 142, 147, 0.05);
        border-radius: 6px;
        border: 1px dashed rgba(142, 142, 147, 0.3);

        .placeholder-text {
          font-size: 13px;
          color: #8e8e93;
        }

        .sync-btn {
          padding: 6px 12px;
          background: #007aff;
          color: white;
          border: none;
          border-radius: 4px;
          font-size: 12px;
          font-weight: 500;
          cursor: pointer;
          transition: background-color 0.2s ease;

          &:hover {
            background: #0056cc;
          }

          &:active {
            background: #004499;
          }
        }
      }
    }
  }

  // 确认方案按钮样式 - 优化版本
  .proposal-confirm-actions {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1; // 设置较低的z-index，确保不会覆盖弹窗

    // 添加背景装饰
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, transparent 0%, #007aff 50%, transparent 100%);
      border-radius: 2px;
    }

    // 使用更高特异性的选择器确保样式生效
    .proposal-confirm-actions .confirm-proposal-btn,
    button.confirm-proposal-btn {
      appearance: none !important;
      border: none !important;
      background: linear-gradient(135deg, #007aff 0%, #0066ff 50%, #0051d5 100%) !important;
      color: white !important;
      padding: 16px 40px !important;
      border-radius: 16px !important;
      font-size: 16px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
      box-shadow: 
        0 8px 24px rgba(0, 122, 255, 0.25),
        0 4px 12px rgba(0, 122, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
      min-width: 180px !important;
      justify-content: center !important;
      position: relative !important;
      overflow: hidden !important;
      backdrop-filter: blur(10px) !important;
      
      // 重置可能的Material Design样式
      text-transform: none !important;
      letter-spacing: normal !important;
      line-height: normal !important;
      
      // 添加内部光泽效果
      &::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%) !important;
        transition: left 0.6s ease !important;
      }

      svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.5 !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
        transition: transform 0.3s ease !important;
      }

      // 悬停状态优化
      &:hover {
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: 
          0 12px 32px rgba(0, 122, 255, 0.35),
          0 6px 16px rgba(0, 122, 255, 0.25),
          inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        background: linear-gradient(135deg, #0066ff 0%, #007aff 50%, #0051d5 100%) !important;
        
        &::before {
          left: 100% !important;
        }
        
        svg {
          transform: scale(1.1) rotate(5deg) !important;
        }
      }

      // 点击状态优化
      &:active {
        transform: translateY(-1px) scale(0.98) !important;
        box-shadow: 
          0 4px 16px rgba(0, 122, 255, 0.3),
          0 2px 8px rgba(0, 122, 255, 0.2),
          inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.15s ease !important;
      }

      // 焦点状态
      &:focus {
        outline: none !important;
        box-shadow: 
          0 8px 24px rgba(0, 122, 255, 0.25),
          0 4px 12px rgba(0, 122, 255, 0.15),
          0 0 0 3px rgba(0, 122, 255, 0.3) !important;
      }

      // 禁用状态
       &:disabled {
         opacity: 0.6 !important;
         cursor: not-allowed !important;
         transform: none !important;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
         
         &:hover {
           transform: none;
           box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         }
       }

       // 响应式设计
       @media (max-width: 768px) {
         padding: 14px 32px;
         font-size: 15px;
         min-width: 160px;
         border-radius: 14px;
         
         svg {
           width: 18px;
           height: 18px;
         }
         
         &:hover {
           transform: translateY(-2px) scale(1.01);
         }
       }

       @media (max-width: 480px) {
         padding: 12px 24px;
         font-size: 14px;
         min-width: 140px;
         border-radius: 12px;
         gap: 8px;
         
         svg {
           width: 16px;
           height: 16px;
         }
         
         &:hover {
           transform: translateY(-1px);
         }
       }

       // 高对比度模式支持
       @media (prefers-contrast: high) {
         border: 2px solid #007aff;
         box-shadow: 
           0 4px 12px rgba(0, 0, 0, 0.3),
           inset 0 1px 0 rgba(255, 255, 255, 0.4);
       }

       // 减少动画模式支持
       @media (prefers-reduced-motion: reduce) {
         transition: none;
         
         &::before {
           transition: none;
         }
         
         svg {
           transition: none;
         }
         
         &:hover {
           transform: none;
           
           svg {
             transform: none;
           }
         }
         
         &:active {
           transform: none;
         }
       }
     }

     // 响应式容器调整
     @media (max-width: 768px) {
       margin-top: 32px;
       padding-top: 24px;
       
       &::before {
         width: 50px;
         height: 2px;
       }
     }

     @media (max-width: 480px) {
       margin-top: 24px;
       padding-top: 20px;
       
       &::before {
         width: 40px;
         height: 2px;
       }
     }
   }
}

/* 方案确认阶段样式 */
.proposal-confirm-section {
  background: white;
  border-radius: 12px;
  padding: 18px; // 从24px减少到18px
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 16px; // 从20px减少到16px

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px; // 从24px减少到18px
    padding-bottom: 12px; // 从16px减少到12px
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    h4 {
      margin: 0;
      font-size: 20px;
      font-weight: 600;
      color: #1d1d1f;
      display: flex;
      align-items: center;
      gap: 8px;

      &::before {
        content: '✓';
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
        color: white;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
      }
    }

    .progress-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: rgba(52, 199, 89, 0.1);
      border-radius: 20px;
      border: 1px solid rgba(52, 199, 89, 0.2);

      .progress-text {
        font-size: 12px;
        font-weight: 600;
        color: #34c759;
      }

      &::after {
        content: '✓';
        font-size: 12px;
        color: #34c759;
      }
    }
  }

  .requirement-info-display {
    .info-header {
      margin-bottom: 20px;

      h5 {
        margin: 0 0 4px 0;
        font-size: 16px;
        font-weight: 600;
        color: #1d1d1f;
      }

      .info-subtitle {
        font-size: 13px;
        color: #8e8e93;
      }
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); // 使用百分比替代固定像素
      gap: 1.5%; // 使用百分比间距
      
      // 色调和材质并排布局
        .color-material-row {
          display: flex;
          gap: 1.5%; // 使用百分比间距
          
          @media (max-width: 768px) {
            flex-direction: column;
            gap: 1.2%; // 移动端使用更小的百分比间距
          }
          
          .color-item,
          .material-item {
            flex: 1;
            min-width: 0; // 防止内容溢出
          }
        }
        
        // 空间结构和材质权重并排布局
        .structure-weight-row {
          display: flex;
          gap: 1.5%; // 使用百分比间距
          
          @media (max-width: 768px) {
            flex-direction: column;
            gap: 1.2%; // 移动端使用更小的百分比间距
          }
          
          .structure-item,
          .weight-item {
            flex: 1;
            min-width: 0; // 防止内容溢出
          }
        }
        
        // 预设氛围和小图时间并排布局
        .atmosphere-time-row {
          display: flex;
          gap: 1.5%; // 使用百分比间距
          
          @media (max-width: 768px) {
            flex-direction: column;
            gap: 1.2%; // 移动端使用更小的百分比间距
          }
          
          .atmosphere-item,
          .time-item {
            flex: 1;
            min-width: 0; // 防止内容溢出
          }
        }

      .info-item {
        background: rgba(0, 122, 255, 0.02);
        border: 1px solid rgba(0, 122, 255, 0.08);
        border-radius: 0.8rem; // 使用rem单位
        padding: 1.2rem; // 使用rem单位
        transition: all 0.2s ease;

        &:hover {
          transform: translateY(-0.15rem); // 使用rem单位
          box-shadow: 0 0.3rem 1.2rem rgba(0, 122, 255, 0.1);
          border-color: rgba(0, 122, 255, 0.15);
        }

        .info-label {
          display: flex;
          align-items: center;
          gap: 0.6rem; // 使用rem单位
          margin-bottom: 0.9rem; // 使用rem单位
          font-size: 0.9rem; // 使用rem单位
          font-weight: 600;
          color: #1d1d1f;

          svg {
            width: 1rem; // 使用rem单位
            height: 16px;
            color: #007aff;
          }
        }

        .info-content {
          .info-value {
            font-size: 14px;
            color: #1d1d1f;
            font-weight: 500;
            display: block;
            margin-bottom: 8px;
          }

          .color-preview {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: inline-block;
            margin-left: 8px;
          }

          .material-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;

            .material-tag {
              background: rgba(52, 199, 89, 0.1);
              color: #34c759;
              padding: 4px 8px;
              border-radius: 4px;
              font-size: 12px;
              font-weight: 500;
            }
          }

          .structure-details {
            display: flex;
            flex-direction: column;
            gap: 4px;

            .structure-item {
              font-size: 13px;
              color: #666;
              padding: 2px 0;
            }
          }

          .weight-list {
            display: flex;
            flex-direction: column;
            gap: 8px;

            .weight-item {
              display: flex;
              justify-content: space-between;
              align-items: center;
              padding: 6px 12px;
              background: white;
              border-radius: 6px;
              border: 1px solid rgba(0, 0, 0, 0.06);

              .weight-label {
                font-size: 13px;
                color: #666;
                font-weight: 500;
              }

              .weight-value {
                font-size: 13px;
                color: #007aff;
                font-weight: 600;
                background: rgba(0, 122, 255, 0.1);
                padding: 2px 8px;
                border-radius: 4px;
              }
            }
          }

          .atmosphere-info {
            display: flex;
            align-items: center;
            gap: 8px;

            .atmosphere-name {
              font-size: 14px;
              color: #1d1d1f;
              font-weight: 600;
            }

            .color-temp {
              font-size: 11px;
              background: rgba(255, 149, 0, 0.1);
              color: #ff9500;
              padding: 2px 6px;
              border-radius: 4px;
            }
          }

          .time-estimate {
            font-size: 16px;
            color: #007aff;
            font-weight: 600;
            background: rgba(0, 122, 255, 0.1);
            padding: 8px 16px;
            border-radius: 8px;
            display: inline-block;
          }
        }
      }
    }
  }

  .requirement-pending {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 149, 0, 0.02);
    border: 2px dashed rgba(255, 149, 0, 0.2);
    border-radius: 12px;

    .pending-icon {
      margin-bottom: 16px;

      svg {
        color: rgba(255, 149, 0, 0.4);
      }
    }

    h5 {
      font-size: 16px;
      font-weight: 600;
      color: #1d1d1f;
      margin: 0 0 8px 0;
    }

    p {
      font-size: 14px;
      color: #8e8e93;
      line-height: 1.4;
      margin: 0;
    }
  }
}

/* 方案确认阶段样式 */
.proposal-confirm-stage {
  .requirement-summary-card {
    background: white;
    border-radius: 12px;
    padding: 18px; // 从24px减少到18px
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 16px; // 从20px减少到16px

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px; // 从20px减少到16px
      padding-bottom: 12px; // 从16px减少到12px
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);

      .header-left {
        display: flex;
        align-items: center;
        gap: 12px;

        .status-icon {
          width: 32px;
          height: 32px;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
          color: white;
          box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
        }

        .header-text {
          h3 {
            margin: 0 0 4px 0;
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
          }

          .subtitle {
            font-size: 13px;
            color: #8e8e93;
            margin: 0;
          }
        }
      }

      .progress-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(52, 199, 89, 0.1);
        border-radius: 20px;
        border: 1px solid rgba(52, 199, 89, 0.2);

        .progress-text {
          font-size: 12px;
          font-weight: 600;
          color: #34c759;
        }

        .check-icon {
          font-size: 14px;
          color: #34c759;
        }
      }
    }

    .requirement-info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 12px; // 从16px减少到12px

      .info-section {
        background: rgba(0, 122, 255, 0.02);
        border: 1px solid rgba(0, 122, 255, 0.08);
        border-radius: 10px;
        padding: 12px; // 从16px减少到12px
        transition: all 0.2s ease;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1);
          border-color: rgba(0, 122, 255, 0.15);
        }

        .section-title {
          display: flex;
          align-items: center;
          gap: 8px;
          margin-bottom: 10px; // 从12px减少到10px

          .title-icon {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            background: #007aff;
            color: white;
          }

          .title-text {
            font-size: 14px;
            font-weight: 600;
            color: #1d1d1f;
          }
        }

        .info-content {
          .info-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0; // 从10px减少到8px
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);

            &:last-child {
              border-bottom: none;
              padding-bottom: 0;
            }

            .item-label {
              font-size: 13px;
              color: #666;
              font-weight: 500;
            }

            .item-value {
              font-size: 13px;
              color: #1d1d1f;
              font-weight: 600;
              text-align: right;
              max-width: 60%;
              word-break: break-word;

              &.highlight {
                color: #007aff;
                background: rgba(0, 122, 255, 0.1);
                padding: 2px 8px;
                border-radius: 4px;
              }
            }
          }
        }
      }
    }

    .completion-placeholder {
      text-align: center;
      padding: 40px 20px;
      background: rgba(255, 149, 0, 0.02);
      border: 2px dashed rgba(255, 149, 0, 0.2);
      border-radius: 12px;

      .placeholder-icon {
        font-size: 48px;
        color: rgba(255, 149, 0, 0.4);
        margin-bottom: 16px;
      }

      .placeholder-title {
        font-size: 16px;
        font-weight: 600;
        color: #1d1d1f;
        margin-bottom: 8px;
      }

      .placeholder-subtitle {
        font-size: 14px;
        color: #8e8e93;
        line-height: 1.4;
      }
    }
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

// 下拉菜单动画
@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 项目标题栏 */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-md; // 缩小与内容的距离
  background-color: white;
  padding: $ios-spacing-lg;
  border-radius: $ios-radius-lg;
  width: 100%;
  box-sizing: border-box;
  position: relative; // 确保下拉菜单正确定位
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: $ios-spacing-lg; // 添加元素间距
  
  .header-left {
    flex: 0 0 auto; // 改为固定宽度，不拉伸
    
    .header-content {
      h1 {
        margin: 0 0 8px 0;
        font-size: $ios-font-size-xl;
        font-weight: $ios-font-weight-semibold;
        color: $ios-text-primary;
      }
      
      .project-meta {
        display: flex;
        align-items: center;
        gap: $ios-spacing-md;
        
        .project-id {
          font-size: $ios-font-size-sm;
          color: $ios-text-secondary;
        }
        
        .project-status {
          padding: $ios-spacing-xs $ios-spacing-sm;
          border-radius: $ios-radius-full;
          font-size: $ios-font-size-xs;
          font-weight: $ios-font-weight-medium;
          background-color: $ios-primary;
          color: white;
        }
      }
    }
  }

  // 中央进度展示区域
  .header-center {
    display: flex;
    align-items: center;
    justify-content: center; // 改回居中对齐
    flex: 1;
    margin: 0 20px; // 左右各20px边距

    .progress-display {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px; // 适度减少内边距
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); // 更柔和的灰色渐变
      border: 1px solid #cbd5e1; // 更柔和的边框
      border-radius: 8px; // 适中的圆角
      font-size: 15px; // 适中的字体大小
      box-shadow: 0 2px 8px rgba(148, 163, 184, 0.15), 0 0 0 1px rgba(148, 163, 184, 0.05); // 更柔和的阴影
      transform: scale(1.05); // 适度放大
      transition: all 0.3s ease-in-out; // 保持平滑过渡
      position: relative;
      overflow: hidden;

      // 更柔和的闪烁效果
      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 3s infinite; // 减慢动画速度
      }

      // 更柔和的悬停效果
      &:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(148, 163, 184, 0.2), 0 0 0 2px rgba(148, 163, 184, 0.1);
      }

      .progress-status {
        font-weight: 600; // 减轻字体粗细
        color: #1e40af; // 使用更协调的蓝色
        text-shadow: none; // 移除文字阴影
      }

      .progress-stage {
        color: #64748b; // 使用更协调的灰色
        font-weight: 500;
      }

      .progress-percentage {
        font-weight: 600; // 减轻字体粗细
        color: #059669; // 使用更协调的绿色
        text-shadow: none; // 移除文字阴影
      }
    }
  }

  // 添加闪烁动画
  @keyframes shimmer {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }

  // 导航按钮区域样式
  .header-nav {
    flex: 0 0 auto; // 改为固定宽度，不拉伸
    display: flex;
    justify-content: flex-start; // 保持左对齐
    margin-left: 20px; // 距离标题20px
    
    .header-nav-tabs {
      .horizontal-tab-nav {
        background: rgba(0, 122, 255, 0.05);
        border-radius: $ios-radius-md;
        padding: 4px;
        
        .tab-container {
          display: flex;
          gap: 4px;
          
          .tab-item {
            padding: 10px 20px;
            border: none;
            border-radius: $ios-radius-sm;
            background: transparent;
            color: $ios-text-primary;
            font-size: $ios-font-size-sm;
            font-weight: $ios-font-weight-medium;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            
            &:hover {
              background: rgba(0, 122, 255, 0.1);
              color: $ios-primary;
            }
            
            &.active {
              background: $ios-primary;
              color: white;
              font-weight: $ios-font-weight-semibold;
            }
          }
        }
        
        .tab-indicator {
          background: $ios-primary;
          border-radius: $ios-radius-sm;
          box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
        }
      }
    }
  }
  
  .header-right {
    flex: 0 0 auto; // 改为固定宽度，不拉伸
    
    .header-actions {
      display: flex;
      align-items: center;
      gap: $ios-spacing-sm;
      
      // 原导航容器样式已移动到header-nav区域，此处保留空白以避免样式冲突
      
      .action-btn {
        padding: 4px 8px; // 进一步减小内边距
        border: none;
        border-radius: 4px; // 进一步减小圆角
        font-size: 11px; // 进一步减小字体大小
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px; // 进一步减小间距
        min-height: 28px; // 进一步减小最小高度
        white-space: nowrap;
        text-decoration: none;
        
        svg {
          flex-shrink: 0;
          width: 14px; // 减小图标大小
          height: 14px; // 减小图标大小
        }
        
        &:focus {
          outline: 2px solid $ios-primary;
          outline-offset: 2px;
        }
        
        &:hover {
          transform: translateY(-1px);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        &:active {
          transform: translateY(0);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
        
        // 主要按钮样式（返回工作台）
        &.primary {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          color: white;
          font-weight: 600;
          
          &:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
          }
        }
        
        // 次要按钮样式
        &.secondary-btn {
          background-color: #f8f9fa;
          color: #495057;
          border: 1px solid #e9ecef;
          
          &:hover {
            background-color: #e9ecef;
            border-color: #dee2e6;
          }
        }
        
        // 停滞按钮样式
        &.stagnation-btn {
          background-color: #fff3cd;
          color: #856404;
          border: 1px solid #ffeaa7;
          
          &:hover {
            background-color: #ffeaa7;
            border-color: #ffdd57;
          }
        }
        
        // 切换项目按钮样式
        &.switch-btn {
          background-color: #e3f2fd;
          color: #1565c0;
          border: 1px solid #bbdefb;
          
          .dropdown-icon {
            transition: transform 0.2s ease-in-out;
          }
          
          &:hover {
            background-color: #bbdefb;
            border-color: #90caf9;
          }
        }
      }
      
      // 项目切换器
      .project-switcher {
        position: relative;
        
        .switch-dropdown {
          position: absolute;
          top: calc(100% + 8px);
          right: 0;
          background: white;
          border: 1px solid #e9ecef;
          border-radius: 8px;
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
          z-index: 1000;
          min-width: 280px;
          max-height: 300px;
          overflow-y: auto;
          animation: dropdown-fade-in 0.2s ease-out;
          
          .project-item {
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f8f9fa;
            transition: background-color 0.2s ease-in-out;
            
            &:last-child {
              border-bottom: none;
            }
            
            &:hover {
              background-color: #f8f9fa;
            }
            
            &.active {
              background-color: #e3f2fd;
              
              .project-name {
                color: #1565c0;
                font-weight: 600;
              }
            }
            
            .project-name {
              display: block;
              font-weight: 500;
              margin-bottom: 4px;
            }
            
            .project-status-badge {
              font-size: 12px;
              padding: 2px 8px;
              border-radius: 12px;
              
              &.ongoing {
                background-color: #e8f5e8;
                color: #2e7d32;
              }
              
              &.completed {
                background-color: #e3f2fd;
                color: #1565c0;
              }
              
              &.pending {
                background-color: #fff3e0;
                color: #ef6c00;
              }
            }
          }
        }
      }
    }
  }
}

// 下拉菜单动画
@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    
    .header-left {
      order: 1;
    }
    
    .header-nav {
      order: 2;
      justify-content: flex-start;
      margin-left: 0; // 移动端取消左边距
      margin-top: 8px; // 添加上边距
      
      .header-nav-tabs {
        width: 100%;
        
        .horizontal-tab-nav {
          .tab-container {
            .tab-item {
              padding: 8px 12px;
              font-size: 13px;
              min-height: 36px;
            }
          }
        }
      }
    }
    
    .header-right {
      order: 3;
      
      .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        
        .action-btn {
          font-size: 13px;
          padding: 8px 12px;
          min-height: 36px;
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .project-header {
    .header-nav {
      .header-nav-tabs {
        .horizontal-tab-nav {
          .tab-container {
            flex-direction: column;
            gap: 2px;
            
            .tab-item {
              width: 100%;
              text-align: center;
            }
          }
        }
      }
    }
  }
}

/* 项目内容区域 */
.project-content {
  .action-btn {
    padding: $ios-spacing-sm $ios-spacing-md;
    border: 1px solid $ios-border;
    border-radius: $ios-radius-md;
    font-size: $ios-font-size-sm;
    font-weight: $ios-font-weight-medium;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: $ios-spacing-xs;
    
    svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }
      
    &:hover {
      background-color: $ios-background-tertiary;
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      border-color: color-mix(in srgb, $ios-border 70%, $ios-primary);
    }
    
    &:active {
      transform: translateY(0);
      background-color: $ios-background-secondary;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
  }
    
    .switch-btn {
      background-color: $ios-primary;
      color: white;
      position: relative;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-primary 85%, black);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
      }
      
      &:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(22, 93, 255, 0.2);
      }
    }
    
    .secondary-btn {
      background-color: $ios-background-secondary;
      color: $ios-text-primary;
      border: 1px solid $ios-border;
      
      &:hover {
        background-color: $ios-background-tertiary;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-color: color-mix(in srgb, $ios-border 70%, $ios-primary);
      }
      
      &:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      }
    }
    
    .stagnation-btn {
      background-color: $ios-warning;
      color: white;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-warning 85%, black);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 125, 0, 0.25);
      }
      
      &:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(255, 125, 0, 0.2);
      }
    }
    
    .project-switcher {
      position: relative;
      
      .switch-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: $ios-spacing-xs;
        background-color: white;
        border: 1px solid $ios-border;
        border-radius: $ios-radius-md;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 280px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        
        // 添加动画效果
        animation: dropdown-fade-in 0.2s ease-out;
        
        .project-item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: $ios-spacing-md;
          cursor: pointer;
          transition: all 0.15s ease-in-out;
          border-bottom: 1px solid $ios-border;
          
          &:last-child {
            border-bottom: none;
          }
          
          &:hover {
            background-color: $ios-background-secondary;
            transform: translateX(2px);
          }
          
          &.active {
            background-color: color-mix(in srgb, $ios-primary 10%, white);
            color: $ios-primary;
            border-left: 3px solid $ios-primary;
            padding-left: calc(#{$ios-spacing-md} - 3px);
          }
          
          .project-name {
            font-size: $ios-font-size-sm;
            font-weight: $ios-font-weight-medium;
            color: $ios-text-primary;
          }
          
          .project-status-badge {
            padding: $ios-spacing-xs $ios-spacing-sm;
            border-radius: $ios-radius-full;
            font-size: $ios-font-size-xs;
            font-weight: $ios-font-weight-medium;
            
            &.ongoing {
              background-color: color-mix(in srgb, $ios-success 15%, white);
              color: $ios-success;
              border: 1px solid color-mix(in srgb, $ios-success 30%, white);
            }
            
            &.completed {
              background-color: color-mix(in srgb, $ios-primary 15%, white);
              color: $ios-primary;
              border: 1px solid color-mix(in srgb, $ios-primary 30%, white);
            }
            
            &.pending {
              background-color: color-mix(in srgb, $ios-warning 15%, white);
              color: $ios-warning;
              border: 1px solid color-mix(in srgb, $ios-warning 30%, white);
            }
          }
        }
      }
    }
  }

/* 主内容布局 */
.main-content-layout {
  display: grid;
  grid-template-columns: 1fr 28%; // 使用百分比：主内容区和右侧栏(28%)
  gap: 1.5%; // 从2%减少到1.5%
  max-width: 96vw; // 使用视口单位，留出4%边距
  margin: 0 auto;
  overflow: visible;
  align-items: start;
  
  // 移除导航栏列相关样式
  .nav-column {
    display: none; // 隐藏导航栏列
  }
  
  .left-column {
    padding: 0;
    min-width: 0;
    flex: 1;
  }
  
  .right-column {
    padding: 0;
    min-width: 25%; // 使用百分比最小宽度
    max-width: 32%; // 使用百分比最大宽度
  }
}

// 响应式设计优化
@media (max-width: 1400px) {
  .project-detail-container {
    padding: 1.5%;
  }

  .main-content-layout {
    grid-template-columns: 1fr 25%; // 中等屏幕调整为25%
    gap: 1.5%;
  }
  
  .horizontal-nav-container {
    margin-bottom: 1.5%;
    padding: 1%;
  }
}

@media (max-width: 1200px) {
  .project-detail-container {
    padding: 1.2%;
  }

  .main-content-layout {
    grid-template-columns: 1fr 23%; // 进一步减小右侧栏宽度为23%
    gap: 1.2%;
    
    .right-column {
      min-width: 22%; // 使用百分比
      max-width: 26%; // 使用百分比
    }
  }
  
  .horizontal-nav {
    .nav-item {
      padding: 1% 1.5%;
      font-size: $ios-font-size-sm;
    }
  }
}

@media (max-width: 768px) {
  .project-detail-container {
    padding: 1%;
  }
  
  .main-content-layout {
    grid-template-columns: 1fr;
    gap: 1.5%;
    
    .left-column,
    .right-column {
      width: 100%;
      min-width: unset;
      max-width: unset;
      margin-bottom: $ios-spacing-md;
    }
  }
  
  .horizontal-nav-container {
    margin-bottom: $ios-spacing-md;
    padding: $ios-spacing-xs;
  }
  
  .horizontal-nav {
    .nav-item {
      padding: $ios-spacing-sm;
      font-size: $ios-font-size-sm;
      
      .nav-text {
        font-size: $ios-font-size-sm;
      }
    }
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: $ios-spacing-md;
    
    .header-actions {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: $ios-spacing-sm;
      
      // 移动端顶部导航条样式调整
      .top-nav-container {
        order: -1; // 确保导航条在移动端显示在最前面
        width: 100%;
        margin-right: 0;
        margin-bottom: $ios-spacing-sm;
        
        .top-nav {
          .vertical-nav {
            width: 100%;
            justify-content: center;
            gap: 8px; // 移动端减小间距
            
            .nav-item {
              flex: 1;
              min-height: 32px;
              padding: 6px 12px;
              font-size: 13px;
              
              .nav-text {
                font-size: 13px;
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .project-detail-container {
    padding: $ios-spacing-xs;
  }
  
  .horizontal-nav {
    .nav-item {
      padding: $ios-spacing-xs $ios-spacing-sm;
      font-size: $ios-font-size-xs;
      
      .nav-text {
        font-size: $ios-font-size-xs;
      }
    }
  }
  
  // 超小屏幕下的顶部导航条优化
  .project-header {
    .header-actions {
      .top-nav-container {
        .top-nav {
          .vertical-nav {
            gap: 6px;
            padding: 3px;
            
            .nav-item {
              min-height: 28px;
              padding: 4px 8px;
              font-size: 12px;
              
              .nav-text {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }
}

/* 阶段详情网格 */
.stage-details-grid {
  display: flex;
  gap: $ios-spacing-md;
  overflow-x: auto;
  padding-bottom: $ios-spacing-sm;
}

.stage-details-cell {
  flex: 1 1 auto;
  min-width: 200px;
  background-color: $ios-background-secondary;
  border-radius: $ios-radius-md;
  padding: $ios-spacing-md;
}

@media (max-width: 1200px) {
  .project-detail-container {
    padding: $ios-spacing-sm; // 减小容器内边距
  }

  .main-content-layout {
    grid-template-columns: 160px 1fr 260px; // 进一步减小列宽
    gap: $ios-spacing-sm; // 减小间距
  }
}

@media (max-width: 768px) {
  .project-detail-container {
    padding: $ios-spacing-xs; // 移动端进一步减小内边距
  }

  .main-content-layout {
    grid-template-columns: 1fr;
    gap: $ios-spacing-sm;

    .left-column,
    .right-column {
      min-width: unset;
      max-width: unset;
    }
  }
}

// 报价明细样式
.quotation-details {
  .quotation-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    .quotation-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px;
      background: #f8f9fa;
      border-radius: 6px;
      
      .quotation-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: white;
        border-radius: 4px;
        border: 1px solid #e9ecef;
        
        .room-name {
          font-weight: 500;
          color: #495057;
        }
        
        .amount {
          font-weight: 600;
          color: #007bff;
        }
      }
    }
    
    .quotation-placeholder {
      padding: 20px;
      text-align: center;
      color: #6c757d;
      background: #f8f9fa;
      border-radius: 6px;
      border: 2px dashed #dee2e6;
    }
    
    .ai-generate-btn {
      align-self: flex-start;
      padding: 8px 16px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

/* 水平导航栏容器 */
.horizontal-nav-container {
  margin-bottom: $ios-spacing-sm; // 进一步缩小与主体内容的间距
  background-color: white;
  border-radius: $ios-radius-lg;
  padding: $ios-spacing-sm; // 减少内边距
  box-shadow: $ios-shadow-sm;
}

/* 水平导航栏样式 */
.horizontal-nav {
  .vertical-nav {
    display: flex;
    flex-direction: row; // 改为横向排列
    gap: 0; // 移除间距，让按钮紧密排列
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: unset;
    max-width: unset;
    width: 100%;
  }

  .nav-item {
    flex: 1; // 每个按钮均分宽度
    display: flex;
    align-items: center;
    justify-content: center;
    padding: $ios-spacing-md $ios-spacing-lg;
    border-radius: 0; // 移除圆角
    cursor: pointer;
    transition: all 0.2s ease;
    color: $ios-text-primary;
    text-decoration: none;
    font-size: $ios-font-size-md;
    font-weight: $ios-font-weight-medium;
    line-height: 1.4;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent; // 添加底部边框用于激活状态

    &:first-child {
      border-top-left-radius: $ios-radius-md;
      border-bottom-left-radius: $ios-radius-md;
    }

    &:last-child {
      border-top-right-radius: $ios-radius-md;
      border-bottom-right-radius: $ios-radius-md;
    }

    &:hover {
      background-color: $ios-background-secondary;
    }

    &.active {
      background-color: rgba(0, 122, 255, 0.1); // 使用透明度替代不存在的变量
      color: $ios-primary;
      font-weight: $ios-font-weight-semibold;
      border-bottom-color: $ios-primary; // 激活状态的底部边框
    }

    .nav-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      text-align: center;
    }

    // 移除图标相关样式，因为当前导航项没有图标
    .nav-icon {
      display: none;
    }
  }
}

// 优化交付执行模块中的"选择图片"按钮样式 - 提高选择器特异性
.project-detail-container.designer-page {
  .upload-section {
    margin: 20px 0;
    
    .upload-header {
      margin-bottom: 16px;
      
      h4 {
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: 600;
        color: #333;
      }
      
      .hint {
        font-size: 14px;
        color: #666;
      }
    }
    
    // 新的大型上传框样式
    .upload-dropzone {
      width: 100%;
      min-height: 100px; // 进一步降低最小高度以减少空白
      border: 2px dashed #d0d7de;
      border-radius: 12px;
      background: #f8f9fa;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      margin-bottom: 12px; // 从16px减少到12px
      
      &:hover {
        border-color: #4A90E2;
        background: #f0f6ff;
        
        .upload-icon {
          color: #4A90E2;
          transform: scale(1.1);
        }
        
        .upload-text {
          color: #4A90E2;
        }
      }
      
      &.drag-over {
        border-color: #4A90E2;
        background: #e6f3ff;
        
        .upload-icon {
          color: #4A90E2;
          animation: bounce 0.6s ease-in-out infinite alternate;
        }
      }
      
      // 有图片时的样式
      &.has-images {
        min-height: 120px; // 从180px进一步降低到120px
        padding: 12px; // 从16px减少到12px
        cursor: default;
        
        &:hover {
          border-color: #d0d7de;
          background: #f8f9fa;
        }
      }
      
      .upload-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        color: #8b949e;
        transition: all 0.3s ease;
        
        // 加号图标样式
        &::before {
          content: '+';
          font-size: 48px;
          font-weight: 300;
          line-height: 1;
          display: block;
        }
      }
      
      .upload-text {
        font-size: 16px;
        font-weight: 500;
        color: #656d76;
        margin-bottom: 8px;
        text-align: center;
        transition: color 0.3s ease;
      }
      
      .upload-hint {
        font-size: 14px;
        color: #8b949e;
        text-align: center;
        line-height: 1.4;
      }
      
      // 确认上传按钮区域
      .confirm-upload-section {
        margin-bottom: 12px;
        padding: 8px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 6px;
        border: 1px solid #dee2e6;
        
        .confirm-upload-btn {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          padding: 8px 16px;
          background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
          color: white;
          border: none;
          border-radius: 4px;
          font-size: 13px;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.3s ease;
          box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
          height: 32px;
          
          &:hover:not(:disabled) {
            background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
          }
          
          &:active:not(:disabled) {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
          }
          
          &:disabled {
            background: #6c757d;
            cursor: not-allowed;
            opacity: 0.6;
            box-shadow: none;
          }
        }
      }
      
      // 上传后的图片网格 - 九宫格布局
      .uploaded-images-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 300px;
        
        .uploaded-image-item {
          position: relative;
          aspect-ratio: 1;
          border-radius: 6px;
          overflow: hidden;
          cursor: pointer;
          transition: all 0.3s ease;
          
          &:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            
            .image-overlay {
              opacity: 1;
            }
          }
          
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
          }
          
          .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 8px;
            
            .image-name {
              color: white;
              font-size: 12px;
              font-weight: 500;
              text-shadow: 0 1px 2px rgba(0,0,0,0.5);
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
            
            .image-actions {
              display: flex;
              gap: 4px;
              justify-content: flex-end;
              
              button {
                width: 20px;
                height: 20px;
                border: none;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.9);
                color: #333;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease;
                
                &:hover {
                  background: white;
                  transform: scale(1.1);
                }
                
                &.preview-btn:hover {
                  color: #4A90E2;
                }
                
                &.remove-btn:hover {
                  color: #dc3545;
                }
              }
            }
          }
        }
        
        .add-more-btn {
          aspect-ratio: 1;
          border: 2px dashed #d0d7de;
          border-radius: 8px;
          background: #f8f9fa;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition: all 0.3s ease;
          
          &:hover {
            border-color: #4A90E2;
            background: #f0f6ff;
            
            .add-icon {
              color: #4A90E2;
              transform: scale(1.1);
            }
            
            .add-text {
              color: #4A90E2;
            }
          }
          
          .add-icon {
            font-size: 24px;
            color: #8b949e;
            margin-bottom: 4px;
            transition: all 0.3s ease;
          }
          
          .add-text {
            font-size: 12px;
            color: #8b949e;
            transition: color 0.3s ease;
          }
        }
        
        // 添加更多图片按钮
        .add-more-images-btn {
          aspect-ratio: 1;
          border: 2px dashed #d1d5db;
          border-radius: 6px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition: all 0.3s ease;
          background: #f9fafb;
          
          &:hover {
            border-color: #3b82f6;
            background: #eff6ff;
            transform: scale(1.05);
          }
          
          .add-icon {
            font-size: 20px;
            font-weight: bold;
            color: #6b7280;
            margin-bottom: 4px;
          }
          
          .add-text {
            font-size: 10px;
            color: #6b7280;
            font-weight: 500;
          }
          
          &:hover .add-icon,
          &:hover .add-text {
            color: #3b82f6;
          }
        }
      }
      
      // 隐藏的文件输入框
      input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
      }
    }
    
    // 弹跳动画
    @keyframes bounce {
      0% { transform: translateY(0); }
      100% { transform: translateY(-8px); }
    }
  }
  
  .upload-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    
    .secondary-btn {
      // 参考售后板块的按钮样式设计
      padding: 8px 16px !important;
      min-height: 36px;
      font-size: 14px !important;
      font-weight: 500 !important;
      
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
      color: #495057 !important;
      border: 1px solid rgba(0, 122, 255, 0.2) !important;
      border-radius: 12px !important;
      
      box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1) !important;
      
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
      cursor: pointer;
      
      display: flex;
      align-items: center;
      gap: 8px;
      
      .upload-icon {
        font-size: 16px;
        color: #007aff;
      }
      
      &:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        border-color: #007aff !important;
        box-shadow: 
          0 4px 16px rgba(0, 122, 255, 0.15),
          0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-2px);
        color: #007aff !important;
      }
      
      &:active {
        transform: translateY(0px) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
      }
    }
    
    .primary-btn {
      // 参考售后板块的主要按钮样式
      padding: 8px 16px;
      min-height: 36px;
      font-size: 14px;
      font-weight: 600;
      
      background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
      color: white;
      border: 1px solid #007aff;
      border-radius: 12px;
      
      box-shadow: 
        0 2px 8px rgba(0, 122, 255, 0.3),
        0 1px 3px rgba(0, 122, 255, 0.2);
      
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      cursor: pointer;
      
      display: flex;
      align-items: center;
      gap: 8px;
      
      .loading-spinner {
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      .check-icon {
        font-size: 16px;
        font-weight: bold;
      }
      
      &.completed {
        background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
        border-color: #34c759;
        box-shadow: 
          0 2px 8px rgba(52, 199, 89, 0.3),
          0 1px 3px rgba(52, 199, 89, 0.2);
        
        &:hover:not(:disabled) {
          background: linear-gradient(135deg, #30d158 0%, #32d74b 100%);
          border-color: #30d158;
          transform: translateY(-2px);
          box-shadow: 
            0 4px 16px rgba(52, 199, 89, 0.4),
            0 2px 8px rgba(52, 199, 89, 0.3);
        }
      }
      
      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #0056b3 0%, #4a9eff 100%);
        border-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 
          0 4px 16px rgba(0, 122, 255, 0.4),
          0 2px 8px rgba(0, 122, 255, 0.3);
      }
      
      &:disabled {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        color: #6c757d;
        border-color: #dee2e6;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
      }
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  }
}

/* 售后板块统一容器样式 */
.aftercare-section-container {
  height: 400px; /* 固定高度 */
  overflow-y: auto; /* 垂直滚动条 */
  overflow-x: hidden; /* 隐藏水平滚动条 */
  border: 1px solid $ios-border;
  border-radius: $ios-radius-md;
  background: $ios-background;
  padding: 16px;
  margin-bottom: 16px;
  
  /* 自定义滚动条样式 */
  &::-webkit-scrollbar {
    width: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    
    &:hover {
      background: #a8a8a8;
    }
  }
  
  /* Firefox 滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
  
  /* 确保内容不会被滚动条遮挡 */
  box-sizing: border-box;
  
  /* 内部组件样式重置 */
  app-settlement-card,
  app-customer-review-card,
  app-customer-review-form,
  app-complaint-card {
    display: block;
    width: 100%;
    height: auto;
    
    /* 移除组件自身的边距和边框，避免重复 */
    ::ng-deep {
      .settlement-card,
      .customer-review-card,
      .customer-review-form,
      .complaint-card {
        border: none;
        margin: 0;
        padding: 0;
        background: transparent;
      }
    }
  }

  /* 新增评价表单区域样式 */
  .review-form-section {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: $ios-radius-md;
    border: 1px solid $ios-border;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    .section-title {
      font-size: 18px;
      font-weight: 600;
      color: $ios-text-primary;
      margin: 0 0 16px 0;
      text-align: center;
      padding-bottom: 12px;
      border-bottom: 2px solid $ios-primary;
    }

    /* 确保评价表单在售后容器内正常显示 */
    app-customer-review-form {
      ::ng-deep {
        .customer-review-form {
          box-shadow: none;
          border: none;
          padding: 0;
          margin: 0;
          
          .form-header {
            padding: 0 0 16px 0;
            border-bottom: 1px solid $ios-border;
            margin-bottom: 20px;

            h3 {
              font-size: 20px;
              margin-bottom: 8px;
            }

            .project-info {
              font-size: 14px;
              color: $ios-text-secondary;
            }
          }

          .form-content {
            .rating-section {
              background: $ios-background-secondary;
              border-radius: $ios-radius-md;
              padding: 16px;
              margin-bottom: 16px;

              h4 {
                font-size: 16px;
                margin-bottom: 8px;
              }

              .dimensions-grid {
                gap: 12px;

                .dimension-item {
                  background: white;
                  border-radius: $ios-radius-sm;
                  padding: 12px;
                  border: 1px solid $ios-border;

                  label {
                    font-size: 14px;
                  }

                  .dimension-desc {
                    font-size: 12px;
                  }
                }
              }
            }

            .form-actions {
              border-top: 1px solid $ios-border;
              padding-top: 16px;
              margin-top: 20px;

              .submit-btn {
                padding: 10px 24px;
                font-size: 14px;
                border-radius: $ios-radius-lg;

                &.primary {
                  background: $ios-primary;
                  color: white;

                  &:hover {
                    background: darken($ios-primary, 10%);
                  }
                }

                &.secondary {
                  border: 1px solid $ios-border;
                  background: white;
                  color: $ios-text-primary;

                  &:hover {
                    background: $ios-background-secondary;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

// 响应式设计优化
@media (max-width: 768px) {
  .project-detail-container.designer-page {
    .upload-actions {
      flex-direction: column;
      gap: 12px;
      
      .secondary-btn {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        min-height: 48px;
        
        &::after {
          font-size: 18px;
        }
      }
      
      .primary-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        min-height: 48px;
      }
    }
  }
  
  /* 移动端售后板块容器调整 */
  .aftercare-section-container {
    height: 300px; /* 移动端降低高度 */
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .project-detail-container.designer-page {
    .upload-actions {
      .secondary-btn {
        padding: 18px 24px !important;
        font-size: 17px !important;
        min-height: 52px;
        
        &::after {
          font-size: 20px;
        }
      }
    }
  }
  
  /* 小屏幕设备进一步调整 */
  .aftercare-section-container {
    height: 250px;
    padding: 8px;
  }
}

/* 新增售后标签页样式 */
.aftercare-section-container {
  .aftercare-tabs {
    .tab-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      border-bottom: 2px solid $ios-border;
      padding-bottom: 16px;

      .tab-button {
        background: white;
        border: 2px solid $ios-border;
        padding: 12px 20px;
        border-radius: 8px 8px 0 0;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        color: $ios-text-secondary;

        &:hover {
          background: $ios-background-secondary;
          border-color: $ios-primary;
          color: $ios-primary;
        }

        &.active {
          background: linear-gradient(135deg, $ios-primary 0%, darken($ios-primary, 15%) 100%);
          color: white;
          border-color: $ios-primary;
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba($ios-primary, 0.3);
        }
      }
    }

    .tab-content {
      .automation-header,
      .panoramic-header,
      .review-header,
      .complaint-header {
        margin-bottom: 24px;

        h3 {
          font-size: 20px;
          font-weight: 600;
          color: $ios-text-primary;
          margin-bottom: 8px;
        }

        .automation-description,
        .panoramic-description,
        .review-description,
        .complaint-description {
          color: $ios-text-secondary;
          font-size: 14px;
          line-height: 1.5;
        }
      }

      .automation-features,
      .panoramic-features,
      .complaint-features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 20px;

        .feature-card {
          background: white;
          border: 1px solid $ios-border;
          border-radius: 8px;
          padding: 16px;
          text-align: center;
          transition: all 0.3s ease;
          min-height: 120px;
          display: flex;
          flex-direction: column;
          justify-content: center;

          &:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
          }

          .feature-icon {
            font-size: 24px;
            margin-bottom: 8px;
          }

          .feature-content {
            h4 {
              font-size: 14px;
              font-weight: 600;
              color: $ios-text-primary;
              margin-bottom: 6px;
              line-height: 1.2;
            }

            p {
              color: $ios-text-secondary;
              font-size: 12px;
              line-height: 1.3;
            }
          }
        }
      }

      .settlement-status,
      .review-content,
      .complaint-content {
        background: white;
        border: 1px solid $ios-border;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
      }

      .automation-actions,
      .panoramic-actions,
      .review-actions,
      .complaint-actions {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;

        .automation-btn {
          background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
          
          &:hover:not(:disabled) {
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
          }
        }
      }

      .recent-syntheses {
        background: white;
        border: 1px solid $ios-border;
        border-radius: 12px;
        padding: 20px;

        h4 {
          font-size: 16px;
          font-weight: 600;
          color: $ios-text-primary;
          margin-bottom: 16px;
        }

        .synthesis-list {
          display: flex;
          flex-direction: column;
          gap: 12px;
        }

        .empty-state {
          text-align: center;
          padding: 40px 20px;
          color: $ios-text-secondary;

          .empty-icon {
            font-size: 48px;
            margin-bottom: 16px;
          }

          .empty-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
          }

          .empty-desc {
            font-size: 14px;
          }
        }
      }

      .review-dimensions {
        background: white;
        border: 1px solid $ios-border;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;

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

          .dimension-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px;
            background: $ios-background-secondary;
            border-radius: 8px;

            .dimension-label {
              font-size: 14px;
              font-weight: 500;
              color: $ios-text-primary;
              margin-bottom: 12px;
            }

            .star-rating {
              display: flex;
              gap: 4px;

              .star {
                font-size: 18px;
                color: #ddd;
                transition: color 0.3s ease;

                &.filled {
                  color: #ffc107;
                }
              }
            }
          }
        }
      }
    }
  }
}
/* ==================== 项目复盘模块样式 ==================== */
.project-review-section {
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  
  .review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 122, 255, 0.1);
    
    .header-left {
      flex: 1;
      
      .section-title {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 8px 0;
        display: flex;
        align-items: center;
        gap: 10px;
      }
      
      .section-subtitle {
        font-size: 14px;
        color: #666;
        margin: 0;
        line-height: 1.6;
      }
    }
    
    .header-right {
      display: flex;
      gap: 12px;
      
      button {
        padding: 10px 20px;
        border-radius: 10px;
        border: none;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        
        &.generate-review-btn {
          background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
          color: white;
          
          &:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
          }
          
          &:disabled {
            opacity: 0.6;
            cursor: not-allowed;
          }
        }
        
        &.export-review-btn {
          background: #f0f0f0;
          color: #333;
          
          &:hover {
            background: #e0e0e0;
          }
        }
      }
    }
  }
  
  .review-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid #f0f0f0;
    
    .review-tab {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 14px 24px;
      border: none;
      background: transparent;
      color: #666;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      position: relative;
      transition: all 0.3s ease;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      
      .tab-icon {
        font-size: 18px;
      }
      
      .tab-label {
        font-weight: 500;
      }
      
      &:hover {
        color: #007aff;
        background: rgba(0, 122, 255, 0.05);
      }
      
      &.active {
        color: #007aff;
        border-bottom-color: #007aff;
        background: rgba(0, 122, 255, 0.08);
      }
    }
  }
  
  .review-content-area {
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    
    /* 自定义滚动条 */
    &::-webkit-scrollbar {
      width: 10px;
    }
    
    &::-webkit-scrollbar-track {
      background: #f5f5f5;
      border-radius: 5px;
    }
    
    &::-webkit-scrollbar-thumb {
      background: #c0c0c0;
      border-radius: 5px;
      
      &:hover {
        background: #a0a0a0;
      }
    }
  }
}

/* SOP执行数据样式 */
.sop-data-content {
  .sop-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    
    .metric-card {
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
      border: 1px solid #e0e0e0;
      border-radius: 16px;
      padding: 24px;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-color: #007aff;
      }
      
      .metric-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        
        .metric-icon {
          font-size: 24px;
        }
        
        .metric-title {
          font-size: 14px;
          font-weight: 600;
          color: #666;
          margin: 0;
        }
      }
      
      .metric-value-large {
        font-size: 36px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 12px;
        
        .unit {
          font-size: 18px;
          font-weight: 400;
          color: #999;
          margin-left: 4px;
        }
      }
      
      .metric-footer {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
        
        .metric-label {
          color: #999;
        }
        
        .metric-benchmark {
          color: #666;
          font-weight: 500;
        }
        
        .metric-status {
          padding: 4px 10px;
          border-radius: 6px;
          font-weight: 600;
          font-size: 12px;
          
          &.good {
            background: #e7f4e4;
            color: #34c759;
          }
          
          &.warning {
            background: #fff3cd;
            color: #ff9500;
          }
        }
        
        .satisfaction-stars {
          display: flex;
          gap: 4px;
          
          .star {
            font-size: 16px;
            color: #e0e0e0;
            
            &.filled {
              color: #ffc107;
            }
          }
        }
      }
    }
  }
  
  .sop-stages-section {
    margin-bottom: 40px;
    
    .subsection-title {
      font-size: 18px;
      font-weight: 700;
      color: #1a1a1a;
      margin: 0 0 24px 0;
      padding-bottom: 12px;
      border-bottom: 2px solid #f0f0f0;
    }
    
    .stages-timeline {
      display: flex;
      flex-direction: column;
      gap: 0;
      
      .stage-timeline-item {
        display: flex;
        gap: 20px;
        position: relative;
        
        .stage-indicator {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding-top: 8px;
          
          .stage-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #e0e0e0;
            border: 3px solid #fff;
            box-shadow: 0 0 0 2px #e0e0e0;
            flex-shrink: 0;
            z-index: 1;
          }
          
          .stage-line {
            width: 2px;
            flex: 1;
            background: #e0e0e0;
            min-height: 40px;
          }
        }
        
        &.completed .stage-indicator .stage-dot {
          background: #34c759;
          box-shadow: 0 0 0 2px #34c759;
        }
        
        &.ongoing .stage-indicator .stage-dot {
          background: #007aff;
          box-shadow: 0 0 0 2px #007aff;
          animation: pulse 2s infinite;
        }
        
        &.delayed .stage-indicator .stage-dot {
          background: #ff9500;
          box-shadow: 0 0 0 2px #ff9500;
        }
        
        .stage-content-card {
          flex: 1;
          background: white;
          border: 1px solid #e0e0e0;
          border-radius: 12px;
          padding: 20px;
          margin-bottom: 20px;
          transition: all 0.3s ease;
          
          &:hover {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            border-color: #007aff;
          }
          
          .stage-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            
            .stage-name {
              font-size: 16px;
              font-weight: 700;
              color: #1a1a1a;
              margin: 0;
            }
            
            .stage-status-badge {
              padding: 6px 14px;
              border-radius: 20px;
              font-size: 12px;
              font-weight: 600;
              
              &.completed {
                background: #e7f4e4;
                color: #34c759;
              }
              
              &.ongoing {
                background: #e3f2fd;
                color: #007aff;
              }
              
              &.delayed {
                background: #fff3cd;
                color: #ff9500;
              }
            }
          }
          
          .stage-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            margin-bottom: 12px;
            
            .stage-metric-item {
              display: flex;
              flex-direction: column;
              
              .label {
                font-size: 13px;
                color: #999;
                margin-bottom: 4px;
              }
              
              .value {
                font-size: 16px;
                font-weight: 600;
                color: #1a1a1a;
                
                &.warning {
                  color: #ff9500;
                }
                
                &.score {
                  padding: 6px 12px;
                  border-radius: 8px;
                  display: inline-block;
                  font-weight: 700;
                  color: white !important;
                  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
                  
                  &.excellent {
                    background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
                    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
                  }
                  
                  &.good {
                    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
                    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
                  }
                  
                  &.average {
                    background: linear-gradient(135deg, #ff9500 0%, #e68600 100%);
                    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
                  }
                  
                  &.poor {
                    background: linear-gradient(135deg, #ff3b30 0%, #d32f2f 100%);
                    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
                  }
                }
              }
            }
          }
          
          .stage-issues {
            background: #fff3cd;
            border-left: 4px solid #ff9500;
            padding: 12px;
            border-radius: 8px;
            
            .issues-label {
              font-weight: 600;
              color: #ff9500;
              margin-right: 8px;
            }
            
            .issues-text {
              font-size: 14px;
              color: #666;
            }
          }
        }
      }
    }
  }
  
  .sop-charts-section {
    .charts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 24px;
      
      .chart-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        padding: 24px;
        
        .chart-title {
          font-size: 16px;
          font-weight: 700;
          color: #1a1a1a;
          margin: 0 0 20px 0;
        }
        
        .chart-placeholder {
          .bar-chart {
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            gap: 12px;
            height: 200px;
            padding: 0 10px;
            
            .bar-group {
              flex: 1;
              display: flex;
              flex-direction: column;
              align-items: center;
              gap: 8px;
              
              .bar-label {
                font-size: 12px;
                color: #666;
                writing-mode: horizontal-tb;
                text-align: center;
                word-wrap: break-word;
                max-width: 100%;
              }
              
              .bars {
                display: flex;
                gap: 4px;
                align-items: flex-end;
                flex: 1;
                width: 100%;
                
                .bar {
                  flex: 1;
                  min-height: 20px;
                  border-radius: 6px 6px 0 0;
                  position: relative;
                  display: flex;
                  justify-content: center;
                  padding-top: 6px;
                  transition: all 0.3s ease;
                  
                  &.planned {
                    background: linear-gradient(to top, #4caf50, #81c784);
                  }
                  
                  &.actual {
                    background: linear-gradient(to top, #2196f3, #64b5f6);
                  }
                  
                  .bar-value {
                    font-size: 11px;
                    font-weight: 600;
                    color: white;
                  }
                  
                  &:hover {
                    transform: scale(1.05);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
                  }
                }
              }
            }
          }
          
          .chart-legend {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 20px;
            
            .legend-item {
              display: flex;
              align-items: center;
              gap: 8px;
              font-size: 13px;
              color: #666;
              
              .legend-color {
                width: 16px;
                height: 16px;
                border-radius: 4px;
                
                &.planned {
                  background: linear-gradient(to bottom, #4caf50, #81c784);
                }
                
                &.actual {
                  background: linear-gradient(to bottom, #2196f3, #64b5f6);
                }
              }
            }
          }
          
          &.radar-chart {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            
            .radar-info {
              text-align: center;
              
              p {
                font-size: 16px;
                color: #666;
                margin-bottom: 16px;
                
                strong {
                  font-size: 20px;
                  color: #007aff;
                }
              }
              
              .score-items {
                display: flex;
                flex-direction: column;
                gap: 8px;
                
                .score-item {
                  display: flex;
                  justify-content: space-between;
                  font-size: 14px;
                  
                  .stage-label {
                    color: #666;
                  }
                  
                  .stage-score {
                    font-weight: 600;
                    
                    &.excellent { color: #34c759; }
                    &.good { color: #007aff; }
                    &.fair { color: #ff9500; }
                    &.poor { color: #ff3b30; }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

/* 经验复盘样式 */
.experience-content {
  .experience-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    
    .intro-text {
      font-size: 15px;
      color: #555;
      text-align: center;
      margin: 0;
      line-height: 1.6;
    }
  }
  
  .experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    
    .experience-card {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 16px;
      padding: 0;
      overflow: hidden;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      }
      
      &.needs-card {
        border-top: 4px solid #007aff;
      }
      
      &.concerns-card {
        border-top: 4px solid #ff9500;
      }
      
      &.complaints-card {
        border-top: 4px solid #ff3b30;
      }
      
      &.highlights-card {
        border-top: 4px solid #34c759;
      }
      
      .card-header-custom {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 24px;
        background: linear-gradient(to bottom, #fafafa, #ffffff);
        border-bottom: 1px solid #f0f0f0;
        
        .card-icon {
          font-size: 22px;
        }
        
        .card-title-custom {
          flex: 1;
          font-size: 16px;
          font-weight: 700;
          color: #1a1a1a;
          margin: 0;
        }
        
        .count-badge {
          padding: 4px 12px;
          border-radius: 20px;
          font-size: 12px;
          font-weight: 600;
          background: #f0f0f0;
          color: #666;
          
          &.warning {
            background: #fff3cd;
            color: #ff9500;
          }
          
          &.success {
            background: #e7f4e4;
            color: #34c759;
          }
        }
      }
      
      .card-content-scrollable {
        max-height: 300px;
        overflow-y: auto;
        padding: 20px 24px;
        
        &::-webkit-scrollbar {
          width: 6px;
        }
        
        &::-webkit-scrollbar-track {
          background: #f5f5f5;
        }
        
        &::-webkit-scrollbar-thumb {
          background: #c0c0c0;
          border-radius: 3px;
        }
        
        .experience-list {
          list-style: none;
          padding: 0;
          margin: 0;
          
          .experience-item {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f0f0f0;
            
            &:last-child {
              border-bottom: none;
              margin-bottom: 0;
              padding-bottom: 0;
            }
            
            .item-bullet {
              font-size: 16px;
              flex-shrink: 0;
              line-height: 1.5;
            }
            
            .item-content {
              flex: 1;
              
              .item-text {
                font-size: 14px;
                color: #333;
                line-height: 1.6;
                margin: 0 0 8px 0;
              }
              
              .item-meta {
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
                font-size: 12px;
                
                .meta-time,
                .meta-source {
                  color: #999;
                }
                
                .meta-resolved {
                  color: #34c759;
                  font-weight: 600;
                }
                
                .meta-unresolved {
                  color: #ff9500;
                  font-weight: 600;
                }
                
                .meta-severity {
                  padding: 2px 8px;
                  border-radius: 4px;
                  font-weight: 600;
                  
                  &.high {
                    background: #ffe5e5;
                    color: #ff3b30;
                  }
                  
                  &.medium {
                    background: #fff3cd;
                    color: #ff9500;
                  }
                  
                  &.low {
                    background: #f0f0f0;
                    color: #666;
                  }
                }
                
                .meta-category {
                  color: #007aff;
                  font-weight: 600;
                }
                
                .meta-praised {
                  color: #34c759;
                  font-weight: 600;
                }
              }
              
              .item-resolution {
                margin-top: 8px;
                padding: 10px;
                background: #e7f4e4;
                border-radius: 8px;
                font-size: 13px;
                
                .resolution-label {
                  font-weight: 600;
                  color: #34c759;
                  margin-right: 6px;
                }
                
                .resolution-text {
                  color: #555;
                }
              }
            }
          }
        }
        
        .empty-state-small {
          text-align: center;
          padding: 40px 20px;
          color: #999;
          font-size: 14px;
        }
      }
    }
  }
  
  .communication-summary {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    
    .communication-timeline {
      display: flex;
      flex-direction: column;
      gap: 20px;
      
      .communication-item {
        display: flex;
        gap: 16px;
        padding: 16px;
        background: #fafafa;
        border-radius: 12px;
        border-left: 4px solid #007aff;
        transition: all 0.3s ease;
        
        &:hover {
          background: #f0f0f0;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .comm-time {
          font-size: 12px;
          color: #999;
          white-space: nowrap;
          min-width: 120px;
        }
        
        .comm-content {
          flex: 1;
          
          .comm-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
            
            .comm-participant {
              font-weight: 700;
              color: #1a1a1a;
            }
            
            .comm-type {
              padding: 3px 10px;
              border-radius: 12px;
              font-size: 11px;
              font-weight: 600;
              
              &.requirement {
                background: #e3f2fd;
                color: #007aff;
              }
              
              &.response {
                background: #e7f4e4;
                color: #34c759;
              }
              
              &.concern {
                background: #fff3cd;
                color: #ff9500;
              }
            }
          }
          
          .comm-message {
            font-size: 14px;
            color: #555;
            line-height: 1.6;
            margin: 0 0 8px 0;
          }
          
          .comm-attachments {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #999;
            
            .attachment-icon {
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

/* 优化建议样式 */
.suggestions-content {
  .suggestions-intro {
    .intro-card {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 32px;
      text-align: center;
      
      .intro-title {
        font-size: 22px;
        font-weight: 700;
        margin: 0 0 10px 0;
      }
      
      .intro-desc {
        font-size: 15px;
        opacity: 0.95;
        margin: 0;
        line-height: 1.6;
      }
    }
  }
  
  .suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    
    .suggestion-card {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 16px;
      padding: 0;
      overflow: hidden;
      transition: all 0.3s ease;
      
      &:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
      }
      
      &.high {
        border-left: 6px solid #ff3b30;
      }
      
      &.medium {
        border-left: 6px solid #ff9500;
      }
      
      &.low {
        border-left: 6px solid #34c759;
      }
      
      .suggestion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        background: linear-gradient(to bottom, #fafafa, #ffffff);
        border-bottom: 1px solid #f0f0f0;
        
        .header-left-content {
          display: flex;
          align-items: center;
          gap: 12px;
          
          .suggestion-priority-badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            
            &.high {
              background: #ffe5e5;
              color: #ff3b30;
            }
            
            &.medium {
              background: #fff3cd;
              color: #ff9500;
            }
            
            &.low {
              background: #e7f4e4;
              color: #34c759;
            }
          }
          
          .suggestion-category {
            font-size: 14px;
            font-weight: 600;
            color: #666;
          }
        }
        
        .header-right-content {
          .suggestion-impact {
            font-size: 13px;
            color: #666;
            
            strong {
              color: #007aff;
              font-weight: 700;
            }
          }
        }
      }
      
      .suggestion-body {
        padding: 24px;
        
        .suggestion-problem,
        .suggestion-solution,
        .suggestion-actions-plan {
          margin-bottom: 24px;
          
          &:last-child {
            margin-bottom: 0;
          }
          
          .problem-title,
          .solution-title,
          .actions-title {
            font-size: 15px;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 12px 0;
          }
          
          .problem-text,
          .solution-text {
            font-size: 14px;
            color: #555;
            line-height: 1.7;
            margin: 0 0 16px 0;
          }
        }
        
        .problem-data {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
          gap: 12px;
          
          .data-point {
            background: #fafafa;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 12px;
            
            .data-label {
              font-size: 12px;
              color: #999;
              margin-right: 4px;
            }
            
            .data-value {
              font-size: 15px;
              font-weight: 700;
              color: #1a1a1a;
              
              &.warning {
                color: #ff9500;
              }
            }
          }
        }
        
        .actions-list {
          list-style: none;
          padding: 0;
          margin: 0;
          
          .action-item {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 3px solid #007aff;
            
            &:last-child {
              margin-bottom: 0;
            }
            
            .action-step {
              font-weight: 700;
              color: #007aff;
              flex-shrink: 0;
            }
            
            .action-text {
              font-size: 14px;
              color: #555;
              line-height: 1.6;
            }
          }
        }
        
        .suggestion-references {
          margin-top: 16px;
          padding-top: 16px;
          border-top: 1px solid #f0f0f0;
          
          .references-label {
            font-size: 13px;
            color: #666;
            margin-right: 8px;
          }
          
          .reference-tag {
            display: inline-block;
            padding: 4px 10px;
            background: #e3f2fd;
            color: #007aff;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-right: 8px;
            margin-top: 6px;
          }
        }
      }
      
      .suggestion-footer {
        display: flex;
        gap: 12px;
        padding: 16px 24px;
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
        
        .action-btn {
          padding: 10px 20px;
          border: none;
          border-radius: 10px;
          font-size: 14px;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.3s ease;
          
          &.accept {
            background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
            color: white;
            
            &:hover {
              transform: translateY(-2px);
              box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
            }
          }
          
          &.detail {
            background: #f0f0f0;
            color: #333;
            
            &:hover {
              background: #e0e0e0;
            }
          }
        }
      }
    }
  }
  
  .empty-state-large {
    text-align: center;
    padding: 80px 20px;
    
    .empty-icon {
      font-size: 64px;
      margin-bottom: 20px;
    }
    
    .empty-title {
      font-size: 20px;
      font-weight: 700;
      color: #1a1a1a;
      margin: 0 0 12px 0;
    }
    
    .empty-desc {
      font-size: 15px;
      color: #999;
      margin: 0;
    }
  }
  
  .suggestions-stats {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      
      .stat-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        transition: all 0.3s ease;
        
        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }
        
        .stat-icon {
          font-size: 32px;
        }
        
        .stat-content {
          .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 4px 0;
          }
          
          .stat-label {
            font-size: 13px;
            color: #999;
            margin: 0;
          }
        }
      }
    }
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ==================== 只读复盘模式样式 ==================== */
.review-only-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.1);
  animation: slideInDown 0.5s ease-out;

  .notice-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
  }

  .notice-content {
    flex: 1;

    h4 {
      margin: 0 0 6px 0;
      font-size: 16px;
      font-weight: 600;
      color: #1976d2;
    }

    p {
      margin: 0;
      font-size: 14px;
      color: #1565c0;
      line-height: 1.5;
    }
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 只读徽章样式 ==================== */
.readonly-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
  animation: pulse 2s infinite;
}

.stage-nav-item.readonly {
  cursor: not-allowed;
  opacity: 0.7;
  
  &:hover {
    transform: none;
  }
  
  .stage-nav-circle {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
  }
}

/* ==================== 参考图管理标签页样式 ==================== */
.reference-tab-content {
  padding: 24px;
  background: #f8f9fa;
  min-height: calc(100vh - 300px);
  
  app-reference-image-manager {
    display: block;
    width: 100%;
  }
}

