@use '../../../shared/styles/_ios-theme.scss' as *;
@import './components/vertical-nav/vertical-nav-styles';

/* 项目详情容器 */
.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: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    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: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 16px;
      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: 16px;

      .info-section {
        background: rgba(0, 122, 255, 0.02);
        border: 1px solid rgba(0, 122, 255, 0.08);
        border-radius: 10px;
        padding: 16px;
        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: 12px;

          .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: 10px 0;
            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-xl; // 增加底部间距
  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: 10px 16px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 40px;
        white-space: nowrap;
        text-decoration: none;
        
        svg {
          flex-shrink: 0;
        }
        
        &: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: 2%;
  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;
    }
  }
}

/* 水平导航栏容器 */
.horizontal-nav-container {
  margin-bottom: $ios-spacing-lg;
  background-color: white;
  border-radius: $ios-radius-lg;
  padding: $ios-spacing-md;
  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: 200px;
      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: 16px;
      
      &: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: 250px;
        padding: 16px;
        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;
      }
      
      // 上传后的图片网格
      .uploaded-images-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        width: 100%;
        
        .uploaded-image-item {
          position: relative;
          aspect-ratio: 1;
          border-radius: 8px;
          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: 8px;
          }
          
          .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: 8px;
              justify-content: center;
              
              button {
                width: 32px;
                height: 32px;
                border: none;
                border-radius: 6px;
                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;
          }
        }
      }
      
      // 隐藏的文件输入框
      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-complaint-card {
    display: block;
    width: 100%;
    height: auto;
    
    /* 移除组件自身的边距和边框，避免重复 */
    ::ng-deep {
      .settlement-card,
      .customer-review-card,
      .complaint-card {
        border: none;
        margin: 0;
        padding: 0;
        background: transparent;
      }
    }
  }
}

// 响应式设计优化
@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;
  }
}