// 需求管理组件样式
.section-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  .section-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;

    .section-icon {
      margin-right: 12px;
      font-size: 1.5rem;
    }

    h2 {
      flex: 1;
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
    }

    .section-actions {
      display: flex;
      gap: 8px;
    }
  }

  .section-content {
    padding: 24px;
  }
}

// 按钮样式
.btn-primary {
  background: #4299e1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;

  &:hover {
    background: #3182ce;
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

.btn-link {
  background: none;
  border: none;
  color: #4299e1;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;

  &:hover {
    color: #3182ce;
  }
}

.btn-icon {
  background: none;
  border: none;
  color: #718096;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: #f7fafc;
    color: #4a5568;
  }
}

// 统计数据样式
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;

  .stat-item {
    text-align: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;

    .stat-number {
      display: block;
      font-size: 2rem;
      font-weight: 700;
      color: #2d3748;
    }

    .stat-label {
      font-size: 0.875rem;
      color: #718096;
    }
  }
}

// 内容列表样式
.content-list {
  .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #2d3748;
  }

  .requirement-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;

    &:hover {
      border-color: #cbd5e0;
      background: #f7fafc;
    }

    .item-status {
      width: 4px;
      height: 100%;
      border-radius: 2px;
      margin-right: 12px;

      &.status-pending { background: #fbbf24; }
      &.status-inProgress { background: #3b82f6; }
      &.status-completed { background: #10b981; }
    }

    .item-content {
      flex: 1;

      h4 {
        margin: 0 0 4px 0;
        font-size: 1rem;
        color: #2d3748;
      }

      p {
        margin: 0 0 8px 0;
        font-size: 0.875rem;
        color: #718096;
      }

      .item-meta {
        display: flex;
        gap: 12px;
        font-size: 0.75rem;

        .priority {
          padding: 2px 8px;
          border-radius: 12px;
          font-weight: 500;

          &.priority-low { background: #e2e8f0; color: #4a5568; }
          &.priority-medium { background: #fed7aa; color: #9a3412; }
          &.priority-high { background: #fecaca; color: #dc2626; }
        }

        .date {
          color: #718096;
        }
      }
    }

    .item-actions {
      display: flex;
      gap: 4px;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
