// 页面容器
.auto-like-page {
  padding: 0 16px 24px;
  background: #f8fafc;
  min-height: 100vh;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  &:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.task-title-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.task-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;

  &.active {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
  }

  &.inactive {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
  }
}

.task-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;

  input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;

    &:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
    }
  }

  input:checked + .slider {
    background-color: #1890ff;
  }

  input:checked + .slider:before {
    transform: translateX(20px);
  }
}

.menu-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #666;

  &:hover {
    background: #f5f5f5;
  }
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 28px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 120px;
  padding: 4px;
  border: 1px solid #e5e5e5;
}

.menu-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 4px;
  font-size: 14px;
  gap: 8px;
  transition: background 0.2s;

  &:hover {
    background: #f5f5f5;
  }

  &.danger {
    color: #ff4d4f;

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

.task-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.info-item {
  display: flex;
}

.info-label {
  font-size: 14px;
  color: #666;
}

.info-value {
  font-size: 14px;
  color: #333;
}

.task-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-icon {
  font-size: 16px;

  &.blue {
    color: #1890ff;
  }

  &.green {
    color: #52c41a;
  }
}

.stats-label {
  font-weight: 500;
}

.stats-value {
  color: #333;
  font-weight: 600;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 16px;
}

.loading-text {
  color: #666;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

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

.empty-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 14px;
  color: #999;
}

// 计划分组（全局 / 独立）
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e40af;
}

.section {
  margin-bottom: 20px;
}

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

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

.section-title-independent {
  .section-dot {
    background: #fb923c;
  }
}

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

// 移动端适配
@media (max-width: 768px) {
  .task-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .task-stats {
    gap: 12px;
    align-items: flex-start;
  }

  .header-content {
    padding: 12px 16px;
  }

  .search-section {
    padding: 12px 16px;
  }

  .auto-like-page {
    padding: 0 12px 16px;
  }
}
