.title {
  font-size: 18px;
  font-weight: bold;
  color: #188eee;
}

.backBtn {
  border: none;
  background: none;
  box-shadow: none;
  color: #666;
  font-size: 18px;
  margin-right: 8px;
}

.addBtn {
  margin-left: 8px;
}

.taskList {
  padding: 0 16px;
}

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

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

.taskCard {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  padding: 16px;
  transition: box-shadow 0.2s;
  &:hover {
    box-shadow: 0 4px 16px rgba(24, 142, 238, 0.1);
  }
}

.taskCardTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.taskName {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switchBtn {
  margin-left: 8px;
}

.actionBtn {
  margin-left: 4px;
}

.taskCardInfo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 16px;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.emptyBox {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 40px 0 32px 0;
  text-align: center;
  color: #bbb;
  margin-top: 40px;
}

.emptyText {
  font-size: 16px;
  color: #888;
  margin: 16px 0 20px 0;
}

.itemCard {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  padding: 16px 16px 12px 16px;
  transition: box-shadow 0.2s;
  position: relative;
  &:hover {
    box-shadow: 0 4px 16px rgba(24, 142, 238, 0.1);
  }
}

.itemTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.itemTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

.itemName {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.statusBadge {
  margin-left: 2px;
  .ant-badge-status-dot {
    width: 8px;
    height: 8px;
  }
  .ant-badge-status-success {
    background: #19c37d;
  }
  .ant-badge-status-default {
    background: #bdbdbd;
  }
  .ant-badge-status-text {
    font-size: 12px;
    font-weight: 400;
    padding: 0 6px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #222;
  }
}

.itemActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switchBtn {
  margin-right: 2px;
}

.moreBtn {
  margin-left: 2px;
  color: #888;
  font-size: 18px;
  background: none;
  border: none;
  box-shadow: none;
}

.itemInfoRow {
  display: flex;
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}
.infoCol {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itemBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #f3f3f3;
  margin-top: 8px;
  padding-top: 6px;
}
.bottomLeft {
  display: flex;
  align-items: center;
  gap: 4px;
}
.clockIcon {
  color: #bdbdbd;
  font-size: 14px;
  margin-right: 2px;
}
.bottomRight {
  text-align: right;
}

// 覆盖Antd Dropdown菜单样式
.ant-dropdown-menu {
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  min-width: 110px !important;
  padding: 6px 0 !important;
}
.ant-dropdown-menu-item {
  font-size: 14px !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.ant-dropdown-menu-item:hover {
  background: #f5f5f5 !important;
}
.ant-dropdown-menu-item-danger {
  color: #e53e3e !important;
}

.detailBg {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detailCard {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px 20px 12px 20px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
}

.detailTop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detailTitle {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusBadge {
  margin-left: 2px;
  .ant-badge-status-dot {
    width: 8px;
    height: 8px;
  }
  .ant-badge-status-success {
    background: #19c37d;
  }
  .ant-badge-status-default {
    background: #bdbdbd;
  }
  .ant-badge-status-text {
    font-size: 12px;
    font-weight: 400;
    padding: 0 6px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #222;
  }
}

.switchBtn {
  margin-left: 8px;
}

.detailInfoRow {
  display: flex;
  font-size: 14px;
  color: #666;
  margin-bottom: 2px;
}
.infoCol {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detailBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #f3f3f3;
  margin-top: 10px;
  padding-top: 6px;
}
.bottomLeft {
  display: flex;
  align-items: center;
  gap: 4px;
}
.clockIcon {
  color: #bdbdbd;
  font-size: 14px;
  margin-right: 2px;
}
.bottomRight {
  text-align: right;
}

.detailLoading {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 16px;
  gap: 16px;
}

.statusPill {
  display: inline-block;
  min-width: 48px;
  height: 20px;
  line-height: 20px;
  font-size: 10px;
  border-radius: 12px;
  text-align: center;
  margin-left: 6px;
  box-sizing: border-box;
}
.statusActive {
  background: #19c37d;
  color: #fff;
}
.statusPaused {
  background: #e5e7eb;
  color: #888;
}
