.container {
  padding: 0 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.searchBox {
  flex: 1;

  :global(.ant-input-affix-wrapper) {
    border-radius: 6px;
    border: 1px solid #d9d9d9;

    &:hover {
      border-color: #40a9ff;
    }

    &:focus-within {
      border-color: #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }
  }
}

.actions {
  display: flex;
  gap: 8px;

  :global(.adm-button) {
    border-radius: 6px;
  }
}

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

.infoBox {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e40af;
}

.section {
  margin-bottom: 20px;
}

.sectionTitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e293b;
}

.sectionDot {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #2563eb;
}

.sectionTitleIndependent {
  .sectionDot {
    background: #fb923c;
  }
}

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

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
  gap: 8px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emptyIcon {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}

.emptyText {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.taskCard {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;

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

  :global(.adm-card-body) {
    padding: 16px;
  }
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.taskInfo {
  flex: 1;
}

.taskName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.planTypeTag {
  margin-left: 8px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.taskStatus {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: rgba(82, 196, 26, 0.1);
  display: inline-block;
}

.cardMenu {
  position: relative;
}

.menuButton {
  padding: 4px 8px;
  color: #666;

  &:hover {
    color: #1890ff;
    background-color: #f0f8ff;
  }
}

.menuDropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 100px;
  overflow: hidden;
}

.menuItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;

  &:hover {
    background-color: #f5f5f5;
  }

  &:last-child {
    color: #ff4d4f;

    &:hover {
      background-color: #fff2f0;
    }
  }
}

.cardContent {
  margin-bottom: 16px;
}

.taskDetail {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;

  &:last-child {
    margin-bottom: 0;
  }
}

.label {
  color: #666;
  margin-right: 8px;
  min-width: 70px;
  flex-shrink: 0;
}

.value {
  color: #333;
  flex: 1;
  word-break: break-all;
}

.cardActions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;

  :global(.adm-button) {
    flex: 1;
    border-radius: 6px;
    font-size: 14px;
  }
}

// 响应式设计
@media (max-width: 480px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .actions {
    justify-content: space-between;
  }

  .taskName {
    font-size: 15px;
  }

  .taskDetail {
    font-size: 13px;
  }

  .label {
    min-width: 60px;
  }
}
